Check-in [2a5fa5bf86]
Overview
Comment:Fixed compiler warning
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 2a5fa5bf860ef64dc2bc5a89d2e9a1d27e884ef2
User & Date: rkeene on 2011-09-05 13:44:31
Other Links: manifest | tags
Context
2011-09-05
14:10
libconfig 0.2.6 Fixed support for building in a directory other than the one with the source code check-in: aa484e24b4 user: rkeene tags: 0.2.6, trunk
13:44
Fixed compiler warning check-in: 2a5fa5bf86 user: rkeene tags: trunk
2007-01-17
08:07
libconfig 0.2.5 Corrected typo (Thanks to T. Hayfield of GMAIL.COM) check-in: 956afb5655 user: rkeene tags: 0.2.5, trunk
Changes

Modified libconfig.c from [763315a783] to [4d749dd593].

331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
	*data = lc_process_size(value, endptr);

	return(0);
}

static int lc_process_var_float(float *data, const char *value, const char **endptr) {
#ifdef HAVE_STRTOF
	*data = strtof(value, endptr);
#else
	*data = strtod(value, endptr);
#endif

	return(0);
}

static int lc_process_var_double(double *data, const char *value, const char **endptr) {
	*data = strtod(value, endptr);

	return(0);
}


int lc_handle_type(lc_var_type_t type, const char *value, void *data) {
	const char *next;







|

|






|







331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
	*data = lc_process_size(value, endptr);

	return(0);
}

static int lc_process_var_float(float *data, const char *value, const char **endptr) {
#ifdef HAVE_STRTOF
	*data = strtof(value, (char **) endptr);
#else
	*data = strtod(value, (char **) endptr);
#endif

	return(0);
}

static int lc_process_var_double(double *data, const char *value, const char **endptr) {
	*data = strtod(value, (char **) endptr);

	return(0);
}


int lc_handle_type(lc_var_type_t type, const char *value, void *data) {
	const char *next;