xcal (4.1-19) xcalpr/xcalpr.c

Summary

 xcalpr/xcalpr.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

    
download this patch

Patch contents

--- xcal-4.1.orig/xcalpr/xcalpr.c
+++ xcal-4.1/xcalpr/xcalpr.c
@@ -86,7 +86,7 @@
 
 static char	*dayfiles[7];		/* connected contents of any dayfiles */
 
-static FILE	*fout = stdout;
+static FILE	*fout;
 	
 static int mon[] = { 
     31, 28, 31, 30,
@@ -100,8 +100,6 @@
 static char	*memerr = "No more memory\n";
 static char	*usage = "Usage: xcalpr [-d dir][-x][-c][-u user][-f file] [month list]\n";
 
-char	*malloc();
-
 /*
  * Routines
  */
@@ -131,6 +129,7 @@
 	char		**av;
 	int		ac;
 	int		yr;
+	fout = stdout;
 
 	while ((c = getopt(argc, argv, "d:u:f:cxv")) != EOF) {