mirror of
https://github.com/dreamlayers/netbsd-mopd.git
synced 2026-02-27 00:49:48 +00:00
Fix errors and simple warnings when building on GCC 10.2.0.
This commit is contained in:
2
Makefile
2
Makefile
@@ -2,7 +2,7 @@ AR = ar
|
||||
CC = gcc
|
||||
RANLIB = ranlib
|
||||
|
||||
CFLAGS = -O2 -g
|
||||
CFLAGS = -O2 -g -Wno-endif-labels
|
||||
LDFLAGS =
|
||||
LIBELF = -lelf
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
static char rcsid[] = "$Id: device.c,v 1.21 1996/08/08 00:00:59 moj Exp $";
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
#include "os.h"
|
||||
#include "common.h"
|
||||
#include "mopdef.h"
|
||||
@@ -48,7 +49,6 @@ int mopOpenDL(struct if_info *, int);
|
||||
int mopOpenRC(struct if_info *, int);
|
||||
#endif
|
||||
int pfTrans();
|
||||
int pfInit();
|
||||
int pfWrite();
|
||||
|
||||
#ifdef DEV_NEW_CONF
|
||||
|
||||
@@ -73,7 +73,7 @@ static char rcsid[] = "$Id: file.c,v 1.4 1996/08/16 22:39:22 moj Exp $";
|
||||
#endif
|
||||
|
||||
#ifndef NOELF
|
||||
#include <libelf/libelf.h>
|
||||
#include <libelf.h>
|
||||
#endif
|
||||
|
||||
struct mopphdr {
|
||||
@@ -582,6 +582,7 @@ GetAOutFileInfo(fd, load, xfr, ftype, seg)
|
||||
ex.a_drsize= mopFileGetBX((u_char *)&ex_swap, 28, 4);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
/*###525 [cc] syntax error before `}'%%%*/
|
||||
}
|
||||
|
||||
@@ -635,6 +636,7 @@ GetAOutFileInfo(fd, load, xfr, ftype, seg)
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
}
|
||||
printf(") Magic: ");
|
||||
switch (N_GETMAGIC (ex)) {
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
static char rcsid[] = "$Id: get.c,v 1.5 1996/03/31 18:50:14 moj Exp $";
|
||||
#endif
|
||||
|
||||
#include <strings.h>
|
||||
#include <sys/types.h>
|
||||
#include <netinet/in.h>
|
||||
#include "mopdef.h"
|
||||
|
||||
@@ -91,7 +91,7 @@ mopReadDL()
|
||||
* The list of all interfaces that are being listened to. loop()
|
||||
* "selects" on the descriptors in this list.
|
||||
*/
|
||||
struct if_info *iflist;
|
||||
extern struct if_info *iflist;
|
||||
|
||||
void mopProcess __P((struct if_info *, u_char *));
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@ static char rcsid[] = "$Id: mopchk.c,v 1.5 1996/08/16 22:46:55 moj Exp $";
|
||||
* Usage: mopchk [-a] [-v] [filename...]
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <common/os.h>
|
||||
#include <common/common.h>
|
||||
#include <common/mopdef.h>
|
||||
@@ -48,7 +49,7 @@ static char rcsid[] = "$Id: mopchk.c,v 1.5 1996/08/16 22:46:55 moj Exp $";
|
||||
* The list of all interfaces that are being listened to. rarp_loop()
|
||||
* "selects" on the descriptors in this list.
|
||||
*/
|
||||
struct if_info *iflist;
|
||||
extern struct if_info *iflist;
|
||||
|
||||
#ifdef NO__P
|
||||
void Usage (/* void */);
|
||||
|
||||
@@ -38,6 +38,7 @@ static char rcsid[] = "$Id: mopd.c,v 1.14 1996/03/31 19:20:42 moj Exp $";
|
||||
* mopd [ -d -f -v ] [ -3 | -4 ] interface
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <common/os.h>
|
||||
#include <common/common.h>
|
||||
#include <common/mopdef.h>
|
||||
@@ -50,12 +51,6 @@ static char rcsid[] = "$Id: mopd.c,v 1.14 1996/03/31 19:20:42 moj Exp $";
|
||||
#include <common/rc.h>
|
||||
#include "process.h"
|
||||
|
||||
/*
|
||||
* The list of all interfaces that are being listened to.
|
||||
* "selects" on the descriptors in this list.
|
||||
*/
|
||||
struct if_info *iflist;
|
||||
|
||||
#ifdef NO__P
|
||||
void Loop (/* void */);
|
||||
void Usage (/* void */);
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
static char rcsid[] = "$Id: process.c,v 1.21 1996/08/22 17:04:07 moj Exp $";
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
#include <common/os.h>
|
||||
#include <common/common.h>
|
||||
#include <common/mopdef.h>
|
||||
|
||||
@@ -38,6 +38,8 @@ static char rcsid[] = "$Id: mopprobe.c,v 1.11 1996/08/11 22:16:10 moj Exp $";
|
||||
* mopprobe [ -3 | -4 ] interface
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <common/os.h>
|
||||
#include <common/common.h>
|
||||
#include <common/mopdef.h>
|
||||
@@ -52,7 +54,7 @@ static char rcsid[] = "$Id: mopprobe.c,v 1.11 1996/08/11 22:16:10 moj Exp $";
|
||||
* The list of all interfaces that are being listened to. rarp_loop()
|
||||
* "selects" on the descriptors in this list.
|
||||
*/
|
||||
struct if_info *iflist;
|
||||
extern struct if_info *iflist;
|
||||
|
||||
#ifdef NO__P
|
||||
void Loop (/* void */);
|
||||
|
||||
@@ -38,6 +38,7 @@ static char rcsid[] = "$Id: moptrace.c,v 1.10 1996/08/05 07:49:14 moj Exp $";
|
||||
* moptrace [ -d ] [ -3 | -4 ] interface
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <common/os.h>
|
||||
#include <common/common.h>
|
||||
#include <common/mopdef.h>
|
||||
@@ -52,7 +53,7 @@ static char rcsid[] = "$Id: moptrace.c,v 1.10 1996/08/05 07:49:14 moj Exp $";
|
||||
* The list of all interfaces that are being listened to.
|
||||
* "selects" on the descriptors in this list.
|
||||
*/
|
||||
struct if_info *iflist;
|
||||
extern struct if_info *iflist;
|
||||
|
||||
#ifdef NO__P
|
||||
void Loop (/* void */);
|
||||
|
||||
Reference in New Issue
Block a user