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

212 lines
4.1 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-ba,v 1.3 2013/03/28 21:31:25 joerg Exp $
* Don't declare errno.
--- uip/mshcmds.c.orig 2001-04-02 16:40:58.000000000 +0000
+++ uip/mshcmds.c
@@ -28,10 +28,9 @@ static char ident[] = "@(#)$Id: mshcmds.
#endif /* MIME */
/* */
+void readids (int id);
+void display_info (int scansw);
-extern int errno;
-
- /* BURST */
static char delim3[] = "-------";/* from burst.c */
@@ -47,7 +46,9 @@ static int nontext();
#endif
-static burst(), forw(), rmm(), show(), ask(), copy_message(), copy_digest();
+static burst(), show(), ask(), copy_message(), copy_digest();
+static void rmm(void);
+static void forw (char *proc, char *filter, int vecp, char **vec, int mime);
static int process();
/* SORTM */
static int msgsort (), subsort();
@@ -66,9 +67,7 @@ extern char response[];
/* */
-forkcmd (args, pgm)
-char **args,
- *pgm;
+void forkcmd (char **args, char *pgm)
{
int child_id;
char *vec[MAXARGS];
@@ -143,8 +142,7 @@ static struct swit distswit[] = {
/* */
-distcmd (args)
-char **args;
+void distcmd (char **args)
{
int vecp = 1;
char *cp,
@@ -249,8 +247,7 @@ static struct swit explswit[] = {
/* */
-explcmd (args)
-char **args;
+void explcmd (char **args)
{
int inplace = 0,
quietsw = 0,
@@ -498,8 +495,7 @@ static struct swit fileswit[] = {
/* */
-filecmd (args)
-char **args;
+void filecmd (char **args)
{
int linksw = 0,
msgp = 0,
@@ -675,8 +671,7 @@ static struct swit foldswit[] = {
/* */
-foldcmd (args)
-char **args;
+void foldcmd (char **args)
{
int fastsw = 0,
headersw = 0,
@@ -906,8 +901,7 @@ static struct swit forwswit[] = {
/* */
-forwcmd (args)
-char **args;
+void forwcmd (char **args)
{
int msgp = 0,
vecp = 1,
@@ -1028,12 +1022,7 @@ char **args;
/* */
-static forw (proc, filter, vecp, vec, mime)
-int vecp,
- mime;
-char *proc,
- *filter,
- **vec;
+static void forw (char *proc, char *filter, int vecp, char **vec, int mime)
{
int i,
child_id,
@@ -1364,8 +1353,7 @@ static struct swit markswit[] = {
/* */
-markcmd (args)
-char **args;
+void markcmd (char **args)
{
int addsw = 0,
deletesw = 0,
@@ -1617,8 +1605,7 @@ static struct swit mhnswit[] = {
/* */
-mhncmd (args)
-char **args;
+void mhncmd (char **args)
{
int msgp = 0,
vecp = 1,
@@ -1733,8 +1720,7 @@ static struct swit packswit[] = {
/* */
-packcmd (args)
-char **args;
+void packcmd (char **args)
{
int msgp = 0,
md,
@@ -1923,8 +1909,7 @@ static struct swit pickswit[] = {
/* */
-pickcmd (args)
-char **args;
+void pickcmd (char **args)
{
int zerosw = 1,
msgp = 0,
@@ -2126,8 +2111,7 @@ static struct swit replswit[] = {
/* */
-replcmd (args)
-char **args;
+void replcmd (char **args)
{
int vecp = 1;
char *cp,
@@ -2227,8 +2211,7 @@ static struct swit rmmswit[] = {
/* */
-rmmcmd (args)
-char **args;
+void rmmcmd (char **args)
{
int msgp = 0,
msgnum;
@@ -2275,7 +2258,7 @@ struct msgs *opntrashf ();
struct msgs *trash ();
#endif /* MH_PLUS */
-static rmm () {
+static void rmm (void) {
register int msgnum,
vecp;
register char *cp;
@@ -2503,8 +2486,7 @@ static struct swit scanswit[] = {
/* */
-scancmd (args)
-char **args;
+void scancmd (char **args)
{
#define equiv(a,b) (a ? b && !strcmp (a, b) : !b)
@@ -2765,8 +2747,7 @@ static struct swit showswit[] = {
/* */
-showcmd (args)
-char **args;
+void showcmd (char **args)
{
int headersw = 1,
nshow = 0,
@@ -3236,8 +3217,7 @@ static struct swit sortswit[] = {
/* */
-sortcmd (args)
-char **args;
+void sortcmd (char **args)
{
int msgp = 0,
msgnum;
@@ -3529,7 +3509,6 @@ char *proc,
(void) strcpy (tmpfil, m_scratch ("", invo_name));
if ((out = fopen (tmpfil, "w")) == NULL) {
int olderr;
- extern int errno;
char newfil[80];
olderr = errno;