Commit 478d1521 authored by Mike Hibler's avatar Mike Hibler

Clean up some lint spotted by clang.

parent 0038c842
/*
* Copyright (c) 2000-2011 University of Utah and the Flux Group.
* Copyright (c) 2000-2014 University of Utah and the Flux Group.
*
* {{{EMULAB-LICENSE
*
......@@ -94,7 +94,7 @@
static char *progname;
static int debug = 0;
static int doit(gzFile *infp);
static int doit(gzFile infp);
static char opshostname[MAXHOSTNAMELEN];
static jmp_buf deadline;
static int deadfl;
......@@ -116,7 +116,7 @@ dead()
int
main(int argc, char **argv)
{
gzFile *infp;
gzFile infp;
char buf[BUFSIZ], *bp, **aliases;
struct hostent *he;
int ch, errors = 0;
......@@ -160,7 +160,7 @@ main(int argc, char **argv)
}
strncpy(opshostname, he->h_name, sizeof(opshostname));
if (bp = strchr(opshostname, '.'))
if ((bp = strchr(opshostname, '.')) != 0)
*bp = 0;
while (backcount) {
......@@ -207,7 +207,7 @@ main(int argc, char **argv)
}
static int
doit(gzFile *infp)
doit(gzFile infp)
{
int i, skip = 0;
time_t curtime, ll_time;
......
......@@ -55,7 +55,7 @@
*
*/
/*
* Copyright (c) 2006 University of Utah and the Flux Group.
* Copyright (c) 2006, 2014 University of Utah and the Flux Group.
*
* {{{EMULAB-LICENSE
*
......@@ -116,6 +116,7 @@
#include <errno.h>
#include <stdarg.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include "suexec.h"
......@@ -521,7 +522,7 @@ int main(int argc, char *argv[])
char argbuf[2*BUFSIZ], *bp = argbuf;
int i, size = sizeof(argbuf) - 1;
*bp = (char) NULL;
*bp = '\0';
for (i = 4; i < argc; i++) {
int count = snprintf(bp, size, "%s ", argv[i]);
......@@ -550,7 +551,8 @@ int main(int argc, char *argv[])
#ifdef TESTBED
{
int groups[NGROUPS], i, idx = 0;
gid_t groups[NGROUPS];
int i, idx = 0;
groups[idx++] = primary_gid;
/* duplicate has something to do with effective gid */
......
Markdown is supported
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