|
From: <wow...@us...> - 2015-10-21 01:28:51
|
Revision: 598
http://sourceforge.net/p/ptpd/code/598
Author: wowczarek
Date: 2015-10-21 01:28:49 +0000 (Wed, 21 Oct 2015)
Log Message:
-----------
- fixed missing assignment from configMapSelectValue()
Modified Paths:
--------------
trunk/src/dep/daemonconfig.c
Modified: trunk/src/dep/daemonconfig.c
===================================================================
--- trunk/src/dep/daemonconfig.c 2015-10-21 00:59:21 UTC (rev 597)
+++ trunk/src/dep/daemonconfig.c 2015-10-21 01:28:49 UTC (rev 598)
@@ -549,7 +549,7 @@
}
static int
-configMapSelectValue(dictionary *dict, dictionary *target, const char* key, uint8_t *input, int def, const char *helptext, ...)
+configMapSelectValue(dictionary *dict, dictionary *target, const char* key, uint8_t *var, int def, const char *helptext, ...)
{
int ret;
@@ -614,7 +614,7 @@
ERROR("Configuration error: option \"%s\" has unknown value: %s - allowed values: %s\n", key, keyValue, sbuf);
ret = 0;
} else {
-
+ *var = (uint8_t)selectedValue;
if(!STRING_EMPTY(helptext) && IS_SHOWDEFAULT()) {
printComment(helptext);
printf("; Options: %s\n", sbuf);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|