diff options
author | Cyril Bur <cyril.bur@au1.ibm.com> | 2018-03-15 16:58:13 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-04-09 03:45:23 -0500 |
commit | 267e65357c2e6d98cedebe55ec4cbca95af68f13 (patch) | |
tree | 323abae6e258aea8b3550ea0e676be8332c649f9 /external | |
parent | 6c53bb6db7f6999bef9d352b659c561c8208c83f (diff) | |
download | skiboot-267e65357c2e6d98cedebe55ec4cbca95af68f13.zip skiboot-267e65357c2e6d98cedebe55ec4cbca95af68f13.tar.gz skiboot-267e65357c2e6d98cedebe55ec4cbca95af68f13.tar.bz2 |
external/ffspart: Allow # comments in input file
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'external')
-rw-r--r-- | external/ffspart/ffspart.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/external/ffspart/ffspart.c b/external/ffspart/ffspart.c index 0fe5840..309f9b6 100644 --- a/external/ffspart/ffspart.c +++ b/external/ffspart/ffspart.c @@ -224,6 +224,10 @@ int main(int argc, char *argv[]) int side = -1; uint32_t pbase, psize, pactual = 0; + /* Inline comments in input file */ + if (line[0] == '#') + continue; + if (line[strlen(line) - 1] == '\n') line[strlen(line) - 1] = '\0'; |