Code Review
/
samplevnf.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Fix toeplitz initialization key and rss key len for mlx4
[samplevnf.git]
/
VNFs
/
DPPD-PROX
/
cfgfile.c
diff --git
a/VNFs/DPPD-PROX/cfgfile.c
b/VNFs/DPPD-PROX/cfgfile.c
index
dc22507
..
2bc9e5f
100644
(file)
--- a/
VNFs/DPPD-PROX/cfgfile.c
+++ b/
VNFs/DPPD-PROX/cfgfile.c
@@
-274,6
+274,11
@@
int cfg_parse(struct cfg_file *pcfg, struct cfg_section *psec)
do {
ret = fgets(buffer, sizeof(buffer), pcfg->pfile);
+ /* remove comments */
+ if (*ret == ';') {
+ *ret = '\0';
+ }
+
if (ret && *ret != '[') {
size_t l = strlen(buffer);
prox_strncpy(lines, buffer, max_len);