Bug #2381 » 0043-client_start_server-Use-macros-instead-of-const-vari.patch
| client/connectdlg_common.c | ||
|---|---|---|
|
#ifdef HAVE_USABLE_FORK
|
||
|
{
|
||
|
int argc = 0;
|
||
|
const int max_nargs = 25;
|
||
|
char *argv[max_nargs + 1];
|
||
|
#define MAX_NARGS 25
|
||
|
char *argv[MAX_NARGS + 1];
|
||
|
char port_buf[32];
|
||
|
char dbg_lvl_buf[32]; /* Do not move this inside the block where it gets filled,
|
||
|
* it's needed via the argv[x] pointer later on, so must
|
||
| ... | ... | |
|
argv[argc++] = ruleset;
|
||
|
}
|
||
|
argv[argc] = NULL;
|
||
|
fc_assert(argc <= max_nargs);
|
||
|
fc_assert(argc <= MAX_NARGS);
|
||
|
{
|
||
|
struct astring srv_cmdline_opts = ASTRING_INIT;
|
||
| ... | ... | |
|
_exit(1);
|
||
|
}
|
||
|
}
|
||
|
#undef MAX_NARGS
|
||
|
#else /* HAVE_USABLE_FORK */
|
||
|
#ifdef FREECIV_MSWINDOWS
|
||
|
if (logfile) {
|
||
- « Previous
- 1
- 2
- Next »