#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"
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;
}
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));
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;