LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Pedro F. Giffuni (giffunip_at_[hidden])
Date: 2006-05-17 19:23:39


oops..
I missed this patch to otb/lamcheckpoint/lamcheckpoint.c too.

Maybe the BSD function could be used instead, but for now I just wanted
to build LAM.

cheers,

   Pedro.

ps. Jan..it's time to update the port to version 7.2 ;-)


--- otb/lamcheckpoint/lamcheckpoint.c.orig Wed May 17 18:10:51 2006
+++ otb/lamcheckpoint/lamcheckpoint.c Wed May 17 18:16:12 2006
@@ -36,7 +36,7 @@
 OPT *ad;
 int param_crlam;
 
-static int strtonum(const char *, pid_t *);
+static int istrtonum(const char *, pid_t *);
 
 /*
  * main
@@ -80,7 +80,7 @@
 
   pid_arg = ao_param(ad, "pid", 0, 0);
  
- if (strtonum(pid_arg, &pid) != 0) {
+ if (istrtonum(pid_arg, &pid) != 0) {
     show_help("lamcheckpoint", "usage", NULL);
     lam_ssi_base_close();
     ao_free(ad);
@@ -125,7 +125,7 @@
 
 
 /*
- * strtonum
+ * istrtonum
  *
  * Function: - convert string to number if possible
  * - handles decimal/octal/hexadecimal
@@ -135,7 +135,7 @@
  * Returns: - 0 or LAMERROR
  */
 static int
-strtonum(const char *str, pid_t *pnum)
+istrtonum(const char *str, pid_t *pnum)
 {
         char *endstr; /* end of parsed string */