Dump configuration does not quote integer and boolean settings.

Signed-off-by: Jan Vidar Krey <janvidar@extatic.org>
This commit is contained in:
Jan Vidar Krey 2009-03-16 14:40:17 +01:00
parent eeaceee6f8
commit b8a0b45245
2 changed files with 8 additions and 5 deletions

View File

@ -3,8 +3,11 @@
- Better "!stats"; can display peak and current bandwidth usage.
- Added "+myip" command.
- Ensure super users and hub owners also have the operator flag set.
- Bug #1: Better dynamic send queue handling for large hubs at the cost of more memory use.
- Bug #1: Disconnecting users due to excessive "send queue".
- Bug #5: Always provide IP-address to all users, not just for active clients.
- Better send queue priorities.
- Dump configuration does not quote integer and boolean settings.
- Minor optimizations.
0.2.5-3487:

View File

@ -366,20 +366,20 @@ void free_config(struct hub_config* config)
if (ignore_defaults) \
{ \
if (config->NAME != DEFAULT) \
fprintf(stdout, "%s = \"%d\"\n", #NAME , config->NAME); \
fprintf(stdout, "%s = %d\n", #NAME , config->NAME); \
} \
else \
fprintf(stdout, "%s = \"%d\"\n", #NAME , config->NAME); \
fprintf(stdout, "%s = %d\n", #NAME , config->NAME); \
#define DUMP_BOOL(NAME, DEFAULT) \
if (ignore_defaults) \
{ \
if (config->NAME != DEFAULT) \
fprintf(stdout, "%s = \"%s\"\n", #NAME , (config->NAME ? "yes" : "no")); \
fprintf(stdout, "%s = %s\n", #NAME , (config->NAME ? "yes" : "no")); \
} \
else \
fprintf(stdout, "%s = \"%s\"\n", #NAME , (config->NAME ? "yes" : "no"));
fprintf(stdout, "%s = %s\n", #NAME , (config->NAME ? "yes" : "no"));
void dump_config(struct hub_config* config, int ignore_defaults)
{