clean up warnings in volparse.c and make it use afsconfig.h for building
COMPONENT=util
include ../config/Makefile.${SYS_NAME}
-CFLAGS = ${OPTMZ} -I. -I$(SRCDIR)include ${XCFLAGS}
+CFLAGS = ${OPTMZ} -I${TOP_SRCDIR}/config -I. -I$(SRCDIR)include ${XCFLAGS}
LDFLAGS = ${OPTMZ} ${XLDFLAGS}
objects = assert.o base64.o casestrcpy.o ktime.o volparse.o hostparse.o \
*/
#include <afs/param.h>
-#if defined(AFS_SUN5_ENV) || defined(AFS_NT40_ENV)
+#include <afsconfig.h>
+#ifdef HAVE_STRING_H
#include <string.h>
-#else
+#endif
+#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
-#ifdef AFS_NT40_ENV
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
negative = 0;
/* skip over leading spaces */
- while (tc = *as) {
+ while ((tc = *as)) {
if (tc != ' ' && tc != '\t') break;
}
else base = 10;
/* compute the # itself */
- while(tc = *as) {
+ while((tc = *as)) {
if (!ismeta(tc, base)) return -1;
total *= base;
total += getmeta(tc);
total = 0; /* initialize things */
/* skip over leading spaces */
- while (tc = *as) {
+ while ((tc = *as)) {
if (tc != ' ' && tc != '\t') break;
}
else base = 10;
/* compute the # itself */
- while(tc = *as) {
+ while((tc = *as)) {
if (!ismeta(tc, base)) return -1;
total *= base;
total += getmeta(tc);