-/* $NetBSD: rain.c,v 1.18 2005/08/09 09:15:23 rpaulo Exp $ */
+/* $NetBSD: rain.c,v 1.21 2008/08/08 16:10:47 drochner Exp $ */
/*
* Copyright (c) 1980, 1993
#include <sys/cdefs.h>
#ifndef lint
-__COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
- The Regents of the University of California. All rights reserved.\n");
+__COPYRIGHT("@(#) Copyright (c) 1980, 1993\
+ The Regents of the University of California. All rights reserved.");
#endif /* not lint */
#ifndef lint
#if 0
static char sccsid[] = "@(#)rain.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: rain.c,v 1.18 2005/08/09 09:15:23 rpaulo Exp $");
+__RCSID("$NetBSD: rain.c,v 1.21 2008/08/08 16:10:47 drochner Exp $");
#endif
#endif /* not lint */
return 1;
}
- (void)initscr();
+ if (!initscr())
+ errx(0, "couldn't initialize screen");
cols = COLS - 4;
lines = LINES - 4;
/* ARGSUSED */
static void
-onsig(int dummy __attribute__((__unused__)))
+onsig(int dummy __unused)
{
sig_caught = 1;
}