dc08309f80
Provided in PR 12072 by Ben Collver (collver@linuxfreemail.com). Ularn is a fantasy games in which your child has contracted a strange dis- ease, and none of your home remedies seem to have any effect. You set out to find a remedy in a limited amount of time, and to collect gold along the way of course! Ularn is based on larn, and adds the concept of character classes.
87 lines
1.7 KiB
Text
87 lines
1.7 KiB
Text
$NetBSD: patch-ac,v 1.1.1.1 2001/04/27 15:27:31 agc Exp $
|
|
|
|
--- bill.c.orig Sat Jan 13 17:22:51 2001
|
|
+++ bill.c Sat Jan 13 17:30:42 2001
|
|
@@ -1,4 +1,10 @@
|
|
/* bill.c */
|
|
+#include <sys/types.h>
|
|
+#include <sys/uio.h>
|
|
+#include <sys/wait.h>
|
|
+#include <unistd.h>
|
|
+#include <stdlib.h>
|
|
+
|
|
#include "header.h"
|
|
#include "player.h"
|
|
#include "extern.h"
|
|
@@ -7,7 +13,7 @@
|
|
static int pid;
|
|
long Taxes;
|
|
|
|
-letter1()
|
|
+int letter1(void)
|
|
{
|
|
sprintf(mail600, "/tmp/#%dmail600",pid); /* prepare path */
|
|
if (lcreat(mail600) < 0) {
|
|
@@ -33,7 +39,7 @@
|
|
return(1);
|
|
}
|
|
|
|
-letter2 ()
|
|
+int letter2 (void)
|
|
{
|
|
sprintf(mail600,"/tmp/#%dmail600",pid); /* prepare path */
|
|
if (lcreat(mail600) < 0) {
|
|
@@ -56,7 +62,7 @@
|
|
return(1);
|
|
}
|
|
|
|
-letter3 ()
|
|
+int letter3 (void)
|
|
{
|
|
sprintf(mail600,"/tmp/#%dmail600",pid); /* prepare path */
|
|
if (lcreat(mail600) < 0) {
|
|
@@ -82,7 +88,7 @@
|
|
return(1);
|
|
}
|
|
|
|
-letter4 ()
|
|
+int letter4 (void)
|
|
{
|
|
sprintf(mail600,"/tmp/#%dmail600",pid); /* prepare path */
|
|
if (lcreat(mail600) < 0) {
|
|
@@ -101,7 +107,7 @@
|
|
return(1);
|
|
}
|
|
|
|
-letter5 ()
|
|
+int letter5 (void)
|
|
{
|
|
sprintf(mail600,"/tmp/#%dmail600",pid); /* prepare path */
|
|
if (lcreat(mail600) < 0) {
|
|
@@ -126,7 +132,7 @@
|
|
return(1);
|
|
}
|
|
|
|
-letter6 ()
|
|
+int letter6 (void)
|
|
{
|
|
sprintf(mail600,"/tmp/#%dmail600",pid); /* prepare path */
|
|
if (lcreat(mail600) < 0) {
|
|
@@ -156,7 +162,7 @@
|
|
letter1, letter2, letter3, letter4, letter5, letter6
|
|
};
|
|
|
|
-mailbill ()
|
|
+void mailbill (void)
|
|
{
|
|
int i;
|
|
char buf[128];
|
|
@@ -168,7 +174,7 @@
|
|
for (i=0; i<sizeof(pfn)/sizeof(int (*)()); i++)
|
|
if (pfn[i]()) {
|
|
sleep(20);
|
|
- sprintf(buf,"/bin/mail %s < %s",
|
|
+ sprintf(buf,"/usr/bin/mail %s < %s",
|
|
loginname,mail600);
|
|
system(buf);
|
|
unlink(mail600);
|