diff src/readtest.c @ 10:26e34ae9a3e3

changed indention and line wrapping to a more consistent style
author meillo@marmaro.de
date Mon, 27 Oct 2008 16:23:10 +0100
parents 08114f7dcc23
children dcb315792513
line wrap: on
line diff
--- a/src/readtest.c	Mon Oct 27 16:21:27 2008 +0100
+++ b/src/readtest.c	Mon Oct 27 16:23:10 2008 +0100
@@ -2,18 +2,17 @@
 #include "masqmail.h"
 #include "readsock.h"
 
-int main()
+int
+main()
 {
-  char *buf = g_malloc(20);
-  int size = 20, ret;
-
-  ret = read_sockline1(stdin, &buf, &size, 60, READSOCKL_CVT_CRLF);
-  //  ret = read_sockline(stdin, buf, size, 60, READSOCKL_CHUG);
+	char *buf = g_malloc(20);
+	int size = 20, ret;
 
-  printf("%s\n", buf);
-  printf("ret = %d, size = %d, strlen = %d\n", ret, size, strlen(buf));
+	ret = read_sockline1(stdin, &buf, &size, 60, READSOCKL_CVT_CRLF);
+	//  ret = read_sockline(stdin, buf, size, 60, READSOCKL_CHUG);
 
-  return 0;
+	printf("%s\n", buf);
+	printf("ret = %d, size = %d, strlen = %d\n", ret, size, strlen(buf));
+
+	return 0;
 }
-
-