Subversion Repositories SvarDOS

Rev

Rev 238 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 238 Rev 241
Line 99... Line 99...
99
  #define maxval 256
99
  #define maxval 256
100
  char value[maxval];
100
  char value[maxval];
101
  char cfgfile[256];
101
  char cfgfile[256];
102
  int curtok = 0, curval = 0, nline = 1;
102
  int curtok = 0, curval = 0, nline = 1;
103
 
103
 
104
  snprintf(cfgfile, sizeof(cfgfile), "%s\\cfg\\pkg.cfg", dosdir);
104
  snprintf(cfgfile, sizeof(cfgfile), "%s\\cfg\\pkginst.cfg", dosdir);
105
  fd = fopen(cfgfile, "r");
105
  fd = fopen(cfgfile, "r");
106
  if (fd == NULL) {
106
  if (fd == NULL) {
107
    kitten_printf(7, 1, "Error: Could not open config file (%s)!", cfgfile);
107
    kitten_printf(7, 1, "Error: Could not open config file (%s)!", cfgfile);
108
    puts("");
108
    puts("");
109
    return(-1);
109
    return(-1);