Summary: cosmetics, declare yow internal functions static
authorSebastian Freundt <freundt@ga-group.nl>
Fri, 6 Jan 2012 19:34:52 +0000 (19:34 +0000)
committerSebastian Freundt <hroptatyr@fresse.org>
Sun, 8 Jan 2012 03:14:16 +0000 (03:14 +0000)
Keywords: bldchn

* lib-src/yow.c: make local things static

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
lib-src/yow.c

index 8f7df31..a644f07 100644 (file)
 #define YOW_FILE "yow.lines"
 #endif
 
-void yow(FILE * fp);
-void setup_yow(FILE * fp);
+static void yow(FILE * fp);
+static void setup_yow(FILE * fp);
 
-int main(int argc, char *argv[])
+int
+main(int argc, char *argv[])
 {
        FILE *fp;
        char file[BUFSIZ];
@@ -79,7 +80,8 @@ static long header_len;
 #define AVG_LEN 40             /* average length of a quotation */
 
 /* Sets len and header_len */
-void setup_yow(FILE * fp)
+static void
+setup_yow(FILE * fp)
 {
        int c;
 
@@ -105,7 +107,8 @@ void setup_yow(FILE * fp)
 }
 
 /* go to a random place in the file and print the quotation there */
-void yow(FILE * fp)
+static void
+yow(FILE * fp)
 {
        long offset;
        int c, i = 0;