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/main.c

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

revision 3456 by tg, Wed Aug 8 12:45:20 2007 UTC revision 3457 by tg, Thu Aug 9 13:40:07 2007 UTC
# Line 33  Line 33 
33    
34  #include <err.h>  #include <err.h>
35  #include <errno.h>  #include <errno.h>
 #include <fcntl.h>  
36  #include <locale.h>  #include <locale.h>
37  #include <stdint.h>  #include <stdint.h>
38  #include <stdio.h>  #include <stdio.h>
# Line 91  main(int argc, char *argv[]) Line 90  main(int argc, char *argv[])
90          }          }
91    
92          /* need at least one .nfo file to parse */          /* need at least one .nfo file to parse */
93  //      if (!argc)          if (!argc)
94  //              usage();                  usage();
95    
96          /* if the output file exists, remove it */          /* if the output file exists, remove it */
97          if (unlink(ofile) && (errno != ENOENT))          if (unlink(ofile) && (errno != ENOENT))
# Line 115  main(int argc, char *argv[]) Line 114  main(int argc, char *argv[])
114                      ctp->catname, ctp->catdesc);                      ctp->catname, ctp->catdesc);
115          }          }
116    
117            /* parse input */
118    
119            while (*argv)
120                    pfile(*argv++);
121    
122          /* … */          /* … */
123    
124          D(1, "finishing...\n");          D(1, "finishing...\n");

Legend:
Removed from v.3456  
changed lines
  Added in v.3457

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