summaryrefslogtreecommitdiff
path: root/time/xcal/patches/patch-af
blob: d692ce2d11293c320e9f7899f30850b4a6b41bbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
$NetBSD: patch-af,v 1.2 2006/10/24 11:51:55 dsainty Exp $

--- xcalpr/xcalpr.c.orig	2006-10-20 16:38:40.000000000 +1300
+++ xcalpr/xcalpr.c	2006-10-24 11:08:56.000000000 +1300
@@ -59,6 +59,7 @@
  
 ***/
 #include <stdio.h>
+#include <stdlib.h>
 #include <ctype.h>
 #include <string.h>
 #include <time.h>
@@ -86,7 +87,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 +101,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
  */
@@ -132,6 +131,8 @@
 	int		ac;
 	int		yr;
 
+	fout = stdout;
+
 	while ((c = getopt(argc, argv, "d:u:f:cxv")) != EOF) {
 
 		switch (c) {