Commit 36d88387 authored by Mike Hibler's avatar Mike Hibler
Browse files

Lint.

parent 0d1f2b6a
/*
* EMULAB-COPYRIGHT
* Copyright (c) 2000-2008 University of Utah and the Flux Group.
* Copyright (c) 2000-2010 University of Utah and the Flux Group.
* All rights reserved.
*/
......@@ -1767,7 +1767,7 @@ parse_configfile(char *filename)
while (fgets(buf, sizeof(buf), fp)) {
int cc = strlen(buf);
if (buf[cc-1] == '\n')
buf[cc-1] = (char) NULL;
buf[cc-1] = '\0';
if (!strncmp(buf, "UID=", 4)) {
if (user) {
......@@ -1896,7 +1896,7 @@ parse_configfile_env(char *filename)
FILE *file;
if (buf[cc-1] == '\n')
buf[cc-1] = (char) NULL;
buf[cc-1] = '\0';
if (isops)
bp = buf;
......
......@@ -207,6 +207,7 @@ main(int argc, char **argv)
static char notify_debug_string[2*BUFSIZ];
#if 0
static int
pubsub_notify_traverse_debug(void *arg, char *name,
pubsub_type_t type, pubsub_value_t value,
......@@ -258,6 +259,7 @@ pubsub_notify_traverse_debug(void *arg, char *name,
return 1;
}
#endif
static void
pubsub_callback(pubsub_handle_t *handle,
......
/*
* EMULAB-COPYRIGHT
* Copyright (c) 2000-2007 University of Utah and the Flux Group.
* Copyright (c) 2000-2010 University of Utah and the Flux Group.
* All rights reserved.
*/
......@@ -209,7 +209,7 @@ main(int argc, char **argv)
if ((bp = strchr(temp, '/')) == NULL)
fatal("Malformed pid/eid: %s", myeid);
*bp++ = (char) NULL;
*bp++ = '\0';
sprintf(keyfilebuf, "/proj/%s/exp/%s/tbdata/eventkey",
temp, bp);
......@@ -292,7 +292,7 @@ main(int argc, char **argv)
* XXX For now, uppercase the strings, and remove trailing _.
*/
if (argc) {
buf[0] = (char) NULL;
buf[0] = '\0';
while (argc) {
if (strlen(*argv) + strlen(buf) >= sizeof(buf)-2)
fatal("Too many event argument strings!");
......@@ -309,8 +309,8 @@ main(int argc, char **argv)
bp++;
}
if (*(bp-1) == '_')
*(bp-1) = (char) NULL;
*bp++ = (char) NULL;
*(bp-1) = '\0';
*bp++ = '\0';
sprintf(&buf[strlen(buf)], "%s=%s ", *argv, bp);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment