Big cleanup: Remove trailing whitespace from files (except those imported

from external sources).
This commit is contained in:
mmdolze
2010-10-30 18:04:21 +00:00
parent 49cd060374
commit fd9b2ce713
113 changed files with 856 additions and 856 deletions
+6 -6
View File
@@ -103,7 +103,7 @@ LL_GoTo(LinkedList *list, Direction whereto)
{
if (!list)
return NULL;
switch (whereto) {
case HEAD: list->current = (list->head.next != &list->tail)
? list->head.next
@@ -122,7 +122,7 @@ LL_GoTo(LinkedList *list, Direction whereto)
: NULL;
break;
}
return list->current;
}
@@ -215,7 +215,7 @@ LL_Prev(LinkedList *list)
* Return pointer to list's \c current node's data.
* \param list List object.
* \return Pointer to \c current node's payload data;
* \c NULL may be empty payload or an error.
* \c NULL may be empty payload or an error.
*/
void *
LL_Get(LinkedList *list)
@@ -446,7 +446,7 @@ LL_InsertNode(LinkedList *list, void *add)
* \param list List object.
* \param whereto Direction where to set the list's \c current pointer
* \return Pointer to data of deleted node; \c NULL on error.
*/
*/
void *
LL_DeleteNode(LinkedList *list, Direction whereto)
{
@@ -502,7 +502,7 @@ LL_DeleteNode(LinkedList *list, Direction whereto)
* \param data Pointer to data of node to delete.
* \param whereto Direction where to set the list's \c current pointer
* \return Pointer to data of deleted node; \c NULL on error.
*/
*/
void *
LL_Remove(LinkedList *list, void *data, Direction whereto)
{
@@ -791,7 +791,7 @@ LL_Find(LinkedList *list, int (*compare)(void *, void *), void *value)
*
* \note
* \c value can be used to report errors, pass additional information, ...
*
*
* \param list List object.
* \param action Pointer to the action function that takes two void pointers
* as arguments and returns a void pointer.
+13 -13
View File
@@ -9,7 +9,7 @@
*
* Copyright(c) 2001, Joris Robijn
* (c) 2003, Rene Wagner
* (c) 2006,2007 Peter Marschall
* (c) 2006,2007 Peter Marschall
*
*/
@@ -172,7 +172,7 @@ const char *config_get_string(const char *sectionname, const char *keyname,
* Legal boolean values are:
* \li \c 0 , \c false , \c off , \c no or \c n for FALSE.
* \li \c 1 , \c true , \c on , \c yes or \c y for TRUE
*
*
* \param sectionname Name of the section where the key is sought.
* \param keyname Name of the key to look for.
* \param skip Number of values to skip/ignore before returning the value.
@@ -210,7 +210,7 @@ short config_get_bool(const char *sectionname, const char *keyname,
* \li \c 0 , \c false , \c off , \c no or \c n for 0.
* \li \c 1 , \c true , \c on , \c yes or \c y for 1
* \li \c 2 or the given name of the third state for 2
*
*
* \param sectionname Name of the section where the key is sought.
* \param keyname Name of the key to look for.
* \param skip Number of values to skip/ignore before returning the value.
@@ -330,7 +330,7 @@ int config_has_key(const char *sectionname, const char *keyname)
/* Did we find the right key ?*/
if (strcasecmp(k->name, keyname) == 0)
count++;
}
}
}
return count;
}
@@ -394,7 +394,7 @@ static ConfigSection *add_section(const char *sectionname)
(*place)->name = strdup(sectionname);
(*place)->first_key = NULL;
(*place)->next_section = NULL;
}
}
return(*place);
}
@@ -560,7 +560,7 @@ static int process_config(ConfigSection **current_section, const char *source_de
report(RPT_WARNING, "Unterminated section label on line %d of %s: %s",
line_nr, source_descr, sectionname);
error = 1;
state = ST_INITIAL; /* alrady at the end, no resync required */
state = ST_INITIAL; /* alrady at the end, no resync required */
break;
case ']':
/* label terminated: find/create section */
@@ -630,7 +630,7 @@ static int process_config(ConfigSection **current_section, const char *source_de
keyname[keyname_pos++] = ch;
keyname[keyname_pos] = '\0';
break;
}
}
report(RPT_WARNING, "Key name too long on line %d of %s: %s",
line_nr, source_descr, keyname);
error = 1;
@@ -654,7 +654,7 @@ static int process_config(ConfigSection **current_section, const char *source_de
report(RPT_WARNING, "Assigment expected on line %d of %s: %s",
line_nr, source_descr, keyname);
error = 1;
state = ST_INVALID_ASSIGNMENT;
state = ST_INVALID_ASSIGNMENT;
}
break;
case ST_VALUE:
@@ -683,7 +683,7 @@ static int process_config(ConfigSection **current_section, const char *source_de
/* ignore leading spaces */
if (value_pos == 0)
break;
/* fall through */
/* fall through */
case '\0':
case '\n':
case '\r':
@@ -701,7 +701,7 @@ static int process_config(ConfigSection **current_section, const char *source_de
state = ((ch == ' ') || (ch == '\t')) ? ST_VALUE_DONE : ST_INITIAL;
break;
case '"':
/* quoted string */
/* quoted string */
state = ST_QUOTEDVALUE;
break;
default:
@@ -777,7 +777,7 @@ static int process_config(ConfigSection **current_section, const char *source_de
ch, line_nr, source_descr);
error = 1;
state = ST_INVALID_VALUE;
}
}
case ST_INVALID_SECTIONLABEL:
/* invalid section label: resync up to end of label/next line */
if (ch == ']')
@@ -798,7 +798,7 @@ static int process_config(ConfigSection **current_section, const char *source_de
line_nr, source_descr, state);
error = 1;
}
}
state = ST_END;
}
@@ -821,7 +821,7 @@ ConfigSection *s;
fprintf(stderr, "%s = \"%s\"\n", k->name, k->value);
fprintf(stderr, "\n");
}
}
}
+1 -1
View File
@@ -68,7 +68,7 @@ double config_get_float(const char *sectionname, const char *keyname,
/* Returns a pointer to the string associated with the specified key.
* The strings returned are always NUL-terminated.
* The string should never be modified, and used only short-term.
* The string should never be modified, and used only short-term.
* In successive calls this function can * re-use the data space !
*
* You can do some things with the returned string:
+1 -1
View File
@@ -20,7 +20,7 @@ To enable the debug() function only in specific files:
#include "shared/debug.h"
#undef DEBUG
Then recompile with 'make'
This way, the global DEBUG macro is off but is locally enabled in
This way, the global DEBUG macro is off but is locally enabled in
certains parts of the software.
*/
+1 -1
View File
@@ -995,7 +995,7 @@ int portable_vsnprintf(char *str, size_t str_m, const char *fmt, va_list ap) {
}
}
/* zero padding to specified precision? */
if (num_of_digits < precision)
if (num_of_digits < precision)
number_of_zeros_to_pad = precision - num_of_digits;
}
/* zero padding to specified minimal field width? */