English Language flag
// Log In
// CVSweb
Project: FreeWRT
// Summary // Activity // Search // Tracker // Lists // News // SCM // Wiki

SCM Repository

ViewVC logotype

Diff of /branches/common-nfo/tools/nfotiser/pfile.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3464 by tg, Thu Aug 9 15:04:31 2007 UTC revision 3465 by tg, Thu Aug 9 15:12:02 2007 UTC
# Line 128  pfile(const char *fn) Line 128  pfile(const char *fn)
128          if ((fd = open(fn, O_RDONLY)) < 0)          if ((fd = open(fn, O_RDONLY)) < 0)
129                  err(255, "cannot open input file '%s'", fn);                  err(255, "cannot open input file '%s'", fn);
130          printf("parsing %s…", fn);          printf("parsing %s…", fn);
131            if (parser_errpfx != NULL)
132                    free(parser_errpfx);
133            parser_errpfx = strdup(fn);
134          parsed = nfo_parse(fd, kwords);          parsed = nfo_parse(fd, kwords);
135            free(parser_errpfx);
136            parser_errpfx = NULL;
137          close(fd);          close(fd);
138          if (CIRCLEQ_EMPTY(parsed))          if (CIRCLEQ_EMPTY(parsed))
139                  errx(1, "error, no entries in the file!");                  errx(1, "error, no entries in the file!");

Legend:
Removed from v.3464  
changed lines
  Added in v.3465

root@freewrt.org:443
ViewVC Help
Powered by ViewVC 1.1.20