--- a/project_files/frontlib/iniparser/iniparser.c Tue Jan 21 22:38:13 2014 +0100
+++ b/project_files/frontlib/iniparser/iniparser.c Tue Jan 21 22:43:06 2014 +0100
@@ -75,9 +75,9 @@
{
static char l[ASCIILINESZ+1];
char * last ;
-
+
if (s==NULL) return NULL ;
-
+
while (isspace((int)*s) && *s) s++;
memset(l, 0, ASCIILINESZ+1);
strcpy(l, s);
@@ -292,7 +292,7 @@
for (j=0 ; j<d->size ; j++) {
if (d->key[j]==NULL)
continue ;
- if (!strncmp(d->key[j], keym, seclen+1))
+ if (!strncmp(d->key[j], keym, seclen+1))
nkeys++;
}
@@ -310,7 +310,7 @@
This function queries a dictionary and finds all keys in a given section.
Each pointer in the returned char pointer-to-pointer is pointing to
a string allocated in the dictionary; do not free or modify them.
-
+
This function returns NULL in case of error.
*/
/*--------------------------------------------------------------------------*/
@@ -334,7 +334,7 @@
seclen = (int)strlen(s);
sprintf(keym, "%s:", s);
-
+
i = 0;
for (j=0 ; j<d->size ; j++) {
@@ -557,7 +557,7 @@
char * section,
char * key,
char * value)
-{
+{
line_status sta ;
char line[ASCIILINESZ+1];
int len ;
@@ -571,7 +571,7 @@
sta = LINE_EMPTY ;
} else if (line[0]=='#' || line[0]==';') {
/* Comment line */
- sta = LINE_COMMENT ;
+ sta = LINE_COMMENT ;
} else if (line[0]=='[' && line[len-1]==']') {
/* Section name */
sscanf(line, "[%[^]]", section);