diff src/conf.c @ 13:49dab67fe461

code beautifying
author meillo@marmaro.de
date Wed, 29 Oct 2008 21:10:18 +0100
parents 26e34ae9a3e3
children a8f3424347dc
line wrap: on
line diff
--- a/src/conf.c	Wed Oct 29 16:34:13 2008 +0100
+++ b/src/conf.c	Wed Oct 29 21:10:18 2008 +0100
@@ -16,10 +16,10 @@
     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */
 
-#include "masqmail.h"
+#include <pwd.h>
+#include <grp.h>
 
-#include "pwd.h"
-#include "grp.h"
+#include "masqmail.h"
 
 masqmail_conf conf;
 
@@ -107,9 +107,7 @@
 	return list;
 }
 
-/* given a semicolon separated string, this function
-   makes a GList out of it.
-*/
+/* given a semicolon separated string, this function makes a GList out of it. */
 GList*
 parse_list(gchar * line, gboolean read_file)
 {
@@ -354,8 +352,7 @@
 
 	c = fgetc(in);
 	if (c != '\"') {
-		while ((isalnum(c) || c == '_' || c == '-' || c == '.' || c == '/'
-		       || c == '@' || c == ';')
+		while ((isalnum(c) || c == '_' || c == '-' || c == '.' || c == '/' || c == '@' || c == ';')
 		       && (ptr < buf + size - 1)
 		       && (c != EOF)) {
 			*ptr = c;
@@ -368,7 +365,7 @@
 		gboolean escape = FALSE;
 		c = fgetc(in);
 		while (((c != '\"') || escape) && (ptr < buf + size - 1)) {
-			if (c != '\n') {	/* ignore line breaks */
+			if (c != '\n') {  /* ignore line breaks */
 				if ((c == '\\') && (!escape)) {
 					escape = TRUE;
 				} else {
@@ -410,8 +407,7 @@
 				return TRUE;
 			}
 		} else {
-			fprintf(stderr, "'=' expected after %s, char was '%c'\n", lval,
-					c);
+			fprintf(stderr, "'=' expected after %s, char was '%c'\n", lval, c);
 		}
 	}
 	return FALSE;