/[tewi]/Server/config.c
ViewVC logotype

Diff of /Server/config.c

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

Revision 1.2 by nishi, Sun Nov 3 05:19:57 2024 UTC Revision 1.4 by nishi, Tue Nov 19 07:55:13 2024 UTC
# Line 133  void tw_config_init(void) { Line 133  void tw_config_init(void) {
133          strcpy(config.hostname, "ps2");          strcpy(config.hostname, "ps2");
134  #elif defined(__NETWARE__)  #elif defined(__NETWARE__)
135          strcpy(config.hostname, "netware");          strcpy(config.hostname, "netware");
136    #elif defined(__amiga__)
137            strcpy(config.hostname, "amiga");
138  #else  #else
139          gethostname(config.hostname, 1024);          gethostname(config.hostname, 1024);
140  #endif  #endif
# Line 390  int tw_config_read(const char* path) { Line 392  int tw_config_read(const char* path) {
392                                                          cm_log("Config", "Missing path at line %d", ln);                                                          cm_log("Config", "Missing path at line %d", ln);
393                                                          stop = 1;                                                          stop = 1;
394                                                  } else {                                                  } else {
395    #ifndef WINCE
396                                                          chdir(r[1]);                                                          chdir(r[1]);
397    #endif
398                                                          free(config.server_root);                                                          free(config.server_root);
399                                                          config.server_root = cm_strdup(r[1]);                                                          config.server_root = cm_strdup(r[1]);
400                                                  }                                                  }


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

nishi@yakumo.dev
ViewVC Help
Powered by ViewVC 1.3.0-dev