summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordon <don@openbsd.org>1998-04-04 02:55:54 +0000
committerdon <don@openbsd.org>1998-04-04 02:55:54 +0000
commit7cb2eb6ea38d4bac1ada9ee6c452f38051beee2d (patch)
tree5e031cb6c6c892c63fe78f0fcd1a5ce44d2572cf
parentGet needed prototypes, because of 64bit return value issues, fixes backtrace (diff)
downloadwireguard-openbsd-7cb2eb6ea38d4bac1ada9ee6c452f38051beee2d.tar.xz
wireguard-openbsd-7cb2eb6ea38d4bac1ada9ee6c452f38051beee2d.zip
gcc 2.8 supplication
-rw-r--r--sys/netccitt/pk_subr.c6
-rw-r--r--sys/netiso/iso_snpac.c5
-rw-r--r--sys/netiso/tp_driver.c4
3 files changed, 8 insertions, 7 deletions
diff --git a/sys/netccitt/pk_subr.c b/sys/netccitt/pk_subr.c
index 7550511f564..f680938a685 100644
--- a/sys/netccitt/pk_subr.c
+++ b/sys/netccitt/pk_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pk_subr.c,v 1.3 1996/04/21 22:28:53 deraadt Exp $ */
+/* $OpenBSD: pk_subr.c,v 1.4 1998/04/04 02:55:54 don Exp $ */
/* $NetBSD: pk_subr.c,v 1.12 1996/03/30 21:54:33 christos Exp $ */
/*
@@ -1154,12 +1154,12 @@ pk_message(lcn, xcp, fmt, va_alist)
{
va_list ap;
- if (lcn)
+ if (lcn) {
if (!PQEMPTY)
printf("X.25(%s): lcn %d: ", format_ntn(xcp), lcn);
else
printf("X.25: lcn %d: ", lcn);
- else if (!PQEMPTY)
+ } else if (!PQEMPTY)
printf("X.25(%s): ", format_ntn(xcp));
else
printf("X.25: ");
diff --git a/sys/netiso/iso_snpac.c b/sys/netiso/iso_snpac.c
index cb720410473..09cb450df73 100644
--- a/sys/netiso/iso_snpac.c
+++ b/sys/netiso/iso_snpac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iso_snpac.c,v 1.4 1996/05/10 12:31:22 deraadt Exp $ */
+/* $OpenBSD: iso_snpac.c,v 1.5 1998/04/04 02:55:55 don Exp $ */
/* $NetBSD: iso_snpac.c,v 1.13 1996/05/07 02:45:16 thorpej Exp $ */
/*-
@@ -260,11 +260,12 @@ iso_setmcasts(ifp, req)
bzero((caddr_t) & ifr, sizeof(ifr));
for (cpp = (caddr_t *) addrlist; *cpp; cpp++) {
bcopy(*cpp, (caddr_t) ifr.ifr_addr.sa_data, 6);
- if (req == RTM_ADD)
+ if (req == RTM_ADD) {
if (ether_addmulti(&ifr, (struct arpcom *) ifp) == ENETRESET)
doreset++;
else if (ether_delmulti(&ifr, (struct arpcom *) ifp) == ENETRESET)
doreset++;
+ }
}
if (doreset) {
if (ifp->if_reset)
diff --git a/sys/netiso/tp_driver.c b/sys/netiso/tp_driver.c
index df8832b212b..55db1bde56d 100644
--- a/sys/netiso/tp_driver.c
+++ b/sys/netiso/tp_driver.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tp_driver.c,v 1.3 1996/04/21 22:29:40 deraadt Exp $ */
+/* $OpenBSD: tp_driver.c,v 1.4 1998/04/04 02:55:57 don Exp $ */
/* $NetBSD: tp_driver.c,v 1.8 1996/03/16 23:13:45 christos Exp $ */
#include "tp_states.h"
@@ -38,7 +38,7 @@ static struct act_ent {
#define sbwakeup(sb) sowakeup(p->tp_sock, sb);
#define MCPY(d, w) (d ? m_copym(d, 0, (int)M_COPYALL, w): 0)
-static trick_hc = 1;
+static int trick_hc = 1;
#include "tp_events.h"
static int _Xebec_action __P((int, struct tp_event *, struct tp_pcb *));