summaryrefslogtreecommitdiff
path: root/mail/ja-mh/patches/patch-ap
blob: 20c320578c9a09ad8dd0800580e725be5d249fe2 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
$NetBSD: patch-ap,v 1.5 2013/03/28 21:31:25 joerg Exp $

* Add Dragonfly support.

--- uip/folder.c.orig	2001-04-02 10:35:24.000000000 +0000
+++ uip/folder.c
@@ -11,7 +11,9 @@ static char ident[] = "@(#)$Id: folder.c
 #include	<locale.h>
 #endif
 
-static		dodir(), addir(), addfold(), dother();
+static void addfold (char *fold);
+static void addir (char *name);
+static		dodir(), dother();
 static int	pfold(), sfold(), compare();
 /*  */
 
@@ -74,8 +76,6 @@ static struct swit switches[] = {
 
 /*  */
 
-extern int errno;
-
 static int  fshort = 0;
 static int  fcreat = 0;
 static int  fpack = 0;
@@ -542,8 +542,7 @@ register struct msgs   *mp;
 
 /*  */
 
-static	addir (name)
-register char   *name;
+static void addir (char *name)
 {
     register char  *base,
                    *cp;
@@ -572,7 +571,7 @@ register char   *name;
     }
     while (dp = readdir (dd))
 	if (strcmp (dp -> d_name, ".") && strcmp (dp -> d_name, "..")) {
-#if defined(SYS5DIR) && !defined(hpux) && !defined(__CYGWIN32__)
+#if defined(SYS5DIR) && !defined(hpux) && !defined(__CYGWIN32__) && !defined(__DragonFly__)
 	    if (cp + dp -> d_reclen + 2 >= name + BUFSIZ)
 #else /* SYS5DIR && !hpux && !__CYGWIN32__ */
 	    if (cp + strlen (dp -> d_name) + 2 >= name + BUFSIZ)
@@ -589,8 +588,7 @@ register char   *name;
 
 /*  */
 
-static	addfold (fold)
-register char   *fold;
+static void addfold (char *fold)
 {
     register int    i,
                     j;