Commit a36ccc7b authored by Mike Hibler's avatar Mike Hibler

Minor lint for GCC 3.3

(early stages of getting Emulab software to build under FreeBSD 5)
parent 16c1bc02
/*
* EMULAB-COPYRIGHT
* Copyright (c) 2000-2003 University of Utah and the Flux Group.
* Copyright (c) 2000-2004 University of Utah and the Flux Group.
* All rights reserved.
*/
......@@ -23,10 +23,13 @@
#include <time.h>
#include "event.h"
#define ERROR(fmt,...) fprintf(stderr,__FUNCTION__ ": " fmt, ## __VA_ARGS__)
#define INFO(fmt,...) fprintf(stderr,__FUNCTION__ ": " fmt, ## __VA_ARGS__)
#define ERROR(fmt,...) \
{ fputs(__FUNCTION__,stderr); fprintf(stderr,": " fmt, ## __VA_ARGS__); }
#define INFO(fmt,...) \
{ fputs(__FUNCTION__,stderr); fprintf(stderr,": " fmt, ## __VA_ARGS__); }
#ifdef DEBUG
#define TRACE(fmt,...) frintf(stderr,__FUNCTION__ ": " fmt, ## __VA_ARGS__)
#define TRACE(fmt,...) \
{ fputs(__FUNCTION__,stderr); fprintf(stderr,": " fmt, ## __VA_ARGS__); }
#else
#define TRACE(fmt,...)
#endif
......
/*
* EMULAB-COPYRIGHT
* Copyright (c) 2003 University of Utah and the Flux Group.
* Copyright (c) 2003, 2004 University of Utah and the Flux Group.
* All rights reserved.
*/
......@@ -382,6 +382,7 @@ ServerLoop(void)
client_records = crecord;
info("Connected: %s\n", inet_ntoa(client.sin_addr));
next:
;
}
/*
......
/*
* EMULAB-COPYRIGHT
* Copyright (c) 2000-2003 University of Utah and the Flux Group.
* Copyright (c) 2000-2004 University of Utah and the Flux Group.
* All rights reserved.
*/
......@@ -305,7 +305,7 @@ main(int argc, char **argv)
format += strlen(format) - len;
gettimeofday(&when, NULL);
localtime_r(&when.tv_sec, &tm);
localtime_r((time_t *)&when.tv_sec, &tm);
if (!strptime(evtime, format, &tm))
usage(progname);
......
......@@ -30,7 +30,6 @@
#include <netdb.h>
#include <signal.h>
#include <syslog.h>
#include <varargs.h>
#include <utmp.h>
#ifdef __linux__
#include <net/if.h>
......
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