pkgsrc/time/xcal/patches/patch-af

39 lines
824 B
Text

$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) {