pkgsrc/mail/ja-mh/patches/patch-bh
2013-03-28 21:31:25 +00:00

96 lines
1.9 KiB
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

$NetBSD: patch-bh,v 1.3 2013/03/28 21:31:26 joerg Exp $
* Don't declare errno.
--- uip/bbc.c.orig 1998-12-01 17:05:00.000000000 +0000
+++ uip/bbc.c
@@ -112,7 +112,14 @@ struct bbcount {
/* */
-extern int errno;
+void rcinit (char *rc);
+
+static void rcput (FILE *bbrc, struct bbcount *p);
+static void pgmread (int pd, int child_id, struct bboard *bb);
+static void add_bb (char *s, int hush);
+static void default_bboards (void);
+static void bbread (struct bboard *bb, int vecp, char *vec[]);
+static void rcend (void);
static int changed = 0;
static int oops = 0;
@@ -566,10 +573,7 @@ char *s;
/* */
-bbread (bb, vecp, vec)
-register struct bboard *bb;
-int vecp;
-char *vec[];
+static void bbread (struct bboard *bb, int vecp, char *vec[])
{
int child_id,
pd[2];
@@ -661,10 +665,7 @@ char *vec[];
/* */
-pgmread (pd, child_id, bb)
-int pd,
- child_id;
-register struct bboard *bb;
+static void pgmread (int pd, int child_id, struct bboard *bb)
{
int i,
j,
@@ -746,8 +747,7 @@ int i;
/* */
-rcinit (rc)
-register char *rc;
+void rcinit (char *rc)
{
int state;
register char *cp;
@@ -797,7 +797,7 @@ register char *rc;
/* */
-rcend () {
+static void rcend (void) {
TYPESIG (*hstat) (), (*istat) (), (*qstat) (), (*tstat) ();
register FILE *bbrc;
@@ -826,9 +826,7 @@ rcend () {
}
-rcput (bbrc, p)
-register FILE *bbrc;
-register struct bbcount *p;
+static void rcput (FILE *bbrc, struct bbcount *p)
{
if (p == NULL)
return;
@@ -931,7 +929,7 @@ register char *w;
/* */
-default_bboards () {
+static void default_bboards (void) {
register char *cp,
**ap;
#ifdef UCL
@@ -987,9 +985,7 @@ default_bboards () {
/* */
-add_bb (s, hush)
-register char *s;
-int hush;
+static void add_bb (char *s, int hush)
{
register struct bboard *bb;
static struct bboard *tail = NULL;