summaryrefslogtreecommitdiffstats
path: root/src/tools/g2/props.c
diff options
context:
space:
mode:
authorDave Barach <dbarach@u1804>2020-04-04 10:05:48 -0400
committerDave Barach <dave@barachs.net>2020-04-04 10:14:06 -0400
commit3e07a4a1e843267892dc291a833d93bd70597011 (patch)
tree5f8aa93c936f8acea9b6389c5fe1f75d770e4ae7 /src/tools/g2/props.c
parent3102c382f0c470e95b2ba7c399a2418e2dc1542a (diff)
misc: sprintf be gone
Along with related static analysis warnings... Type: fix Ticket: VPP-1837 Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I2c6949c7a2250b8f76a63508c7c210daecfe0f91
Diffstat (limited to 'src/tools/g2/props.c')
-rw-r--r--src/tools/g2/props.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tools/g2/props.c b/src/tools/g2/props.c
index a23dc0504d2..41df97ab7dd 100644
--- a/src/tools/g2/props.c
+++ b/src/tools/g2/props.c
@@ -1,4 +1,4 @@
-/*
+/*
*------------------------------------------------------------------
* Copyright (c) 1997-2016 Cisco and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -35,7 +35,7 @@ static prop_t *buckets [NBUCKETS];
static int hash_shifts[4] = {24, 16, 8, 0};
/*
- * getprop
+ * getprop
*/
char *getprop (char *name)
@@ -106,7 +106,7 @@ void addprop (char *name, char *value)
}
/*
- * sxerox
+ * sxerox
*/
static char *sxerox (char *s)
@@ -117,7 +117,7 @@ static char *sxerox (char *s)
}
/*
- * readprops
+ * readprops
*/
#define START 0
@@ -183,7 +183,7 @@ int readprops (char *filename)
c, linenum);
exit (1);
break;
-
+
case CPP_COMMENT:
while (1) {
c = getc (ifp);
@@ -217,7 +217,7 @@ int readprops (char *filename)
}
}
break;
-
+
case READNAME:
i = 0;
namebuf[i++] = c;