pull-prototypes-to-head-20020821
[openafs.git] / src / bozo / ezbnodeops.c
index 75e6261..520a362 100644 (file)
@@ -19,6 +19,16 @@ RCSID("$Header$");
 #ifdef AFS_NT40_ENV
 #include <io.h>
 #endif
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
+#include <stdlib.h>
+
 #include <afs/afsutil.h>
 #include <afs/procmgmt.h>  /* signal(), kill(), wait(), etc. */
 #include "bnode.h"
@@ -47,7 +57,7 @@ static int ez_hascore(abnode)
 register struct ezbnode *abnode; {
     char tbuffer[256];
 
-    bnode_CoreName(abnode, (char *) 0, tbuffer);
+    bnode_CoreName(abnode, NULL, tbuffer);
     if (access(tbuffer, 0) == 0) return 1;
     else return 0;
 }
@@ -87,7 +97,7 @@ char *acommand; {
 
     if (ConstructLocalBinPath(acommand, &cmdpath)) {
        bozo_Log("BNODE: command path invalid '%s'\n", acommand);
-       return (struct bnode *)0;
+       return NULL;
     }
 
     te = (struct ezbnode *) malloc(sizeof(struct ezbnode));
@@ -129,7 +139,7 @@ afs_int32 astatus; {
     if (astatus == BSTAT_NORMAL && !abnode->running) {
        /* start up */
        abnode->lastStart = FT_ApproxTime();
-       code = bnode_NewProc(abnode, abnode->command, (char *) 0, &tp);
+       code = bnode_NewProc(abnode, abnode->command, NULL, &tp);
        if (code) return code;
        abnode->running = 1;
        abnode->proc = tp;