diff options
author | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-25 20:42:27 (EST) |
---|---|---|
committer | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-25 20:42:27 (EST) |
commit | 9ba412631e57deb365d5e7fb8b8c2fbf9bfe27b0 (patch) | |
tree | 3d6a8bc8a98b9e193b474cb6cb74e470e20e1dc4 /libopkg/opkg_conf.c | |
parent | df364b323b478922b8aedab497ee6e6659dbc5f4 (diff) |
file_util.c cleanups. Remove redundant str_chomp from str_util.c.
git-svn-id: http://opkg.googlecode.com/svn/trunk@382 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/opkg_conf.c')
-rw-r--r-- | libopkg/opkg_conf.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libopkg/opkg_conf.c b/libopkg/opkg_conf.c index f6d6868..193ae5c 100644 --- a/libopkg/opkg_conf.c +++ b/libopkg/opkg_conf.c @@ -540,14 +540,11 @@ static int opkg_conf_parse_file(opkg_conf_t *conf, const char *filename, break; } - str_chomp(line); - if (regexec(&comment_re, line, 0, 0, 0) == 0) { goto NEXT_LINE; } if (regexec(&valid_line_re, line, regmatch_size, regmatch, 0) == REG_NOMATCH) { - str_chomp(line); fprintf(stderr, "%s:%d: Ignoring invalid line: `%s'\n", filename, line_num, line); goto NEXT_LINE; |