diff options
author | 2020-04-04 10:05:48 -0400 | |
---|---|---|
committer | 2020-08-13 17:20:36 +0000 | |
commit | d13034a6d1a239af07948ebe6a399c6aec5ddbbc (patch) | |
tree | 51534d97091bf18d77f07756c1bd35d893d56aa9 /src/tools/g2/props.c | |
parent | 11903b8db67d9de4d86cca856a8a32aa43f838f5 (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
(cherry picked from commit 3e07a4a1e843267892dc291a833d93bd70597011)
Diffstat (limited to 'src/tools/g2/props.c')
-rw-r--r-- | src/tools/g2/props.c | 12 |
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; |