diff options
author | tron <tron@pkgsrc.org> | 1999-11-20 11:54:44 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 1999-11-20 11:54:44 +0000 |
commit | 77760a65905d0a0e1e27f855ea0c62c7cef91090 (patch) | |
tree | 6a1c59e2bc85407c55f9c0b00b4d8f5a8bff23ea /net/wakeup/patches/patch-aa | |
parent | fb8b9b5f125578c5ad1f881ea7863f54806b2450 (diff) | |
download | pkgsrc-77760a65905d0a0e1e27f855ea0c62c7cef91090.tar.gz |
Use NetBSD build system and WARNSify program.
Diffstat (limited to 'net/wakeup/patches/patch-aa')
-rw-r--r-- | net/wakeup/patches/patch-aa | 40 |
1 files changed, 33 insertions, 7 deletions
diff --git a/net/wakeup/patches/patch-aa b/net/wakeup/patches/patch-aa index 165bb807d82..8a4b1ce2f98 100644 --- a/net/wakeup/patches/patch-aa +++ b/net/wakeup/patches/patch-aa @@ -1,8 +1,25 @@ -$NetBSD: patch-aa,v 1.1.1.1 1999/11/18 22:28:16 hubertf Exp $ +$NetBSD: patch-aa,v 1.2 1999/11/20 11:54:45 tron Exp $ ---- hpwake.c.orig Thu Nov 18 23:18:47 1999 -+++ hpwake.c Thu Nov 18 23:21:54 1999 -@@ -42,7 +42,7 @@ +--- hpwake.c.orig Sat Nov 20 12:48:37 1999 ++++ hpwake.c Sat Nov 20 12:49:38 1999 +@@ -16,6 +16,7 @@ + email: wann@server7.ik.mb.uni-siegen.de + */ + ++#include <ctype.h> + #include <stdio.h> + #include <string.h> + #include <unistd.h> +@@ -26,6 +27,8 @@ + + u_char magicpacket[500]; + ++int get_magicpacket(unsigned char *,char *); ++int main(int,char *[]); + + int get_magicpacket(packet,arg) + +@@ -42,7 +45,7 @@ for (a = arg; *a; a++) if (*a != ':' && !isxdigit(*a)) { @@ -11,7 +28,7 @@ $NetBSD: patch-aa,v 1.1.1.1 1999/11/18 22:28:16 hubertf Exp $ exit(2); } -@@ -50,7 +50,7 @@ +@@ -50,7 +53,7 @@ &dstaddr[0], &dstaddr[1], &dstaddr[2], &dstaddr[3], &dstaddr[4], &dstaddr[5]); if (k != 6) { @@ -20,7 +37,16 @@ $NetBSD: patch-aa,v 1.1.1.1 1999/11/18 22:28:16 hubertf Exp $ exit(2); } -@@ -98,6 +98,11 @@ +@@ -85,7 +88,7 @@ + + + +-main(argc,argv) ++int main(argc,argv) + + int argc; + char *argv[]; +@@ -98,6 +101,11 @@ int s; int i; @@ -32,7 +58,7 @@ $NetBSD: patch-aa,v 1.1.1.1 1999/11/18 22:28:16 hubertf Exp $ packetsize = get_magicpacket(magicpacket, argv[1]); if ((s = socket(AF_INET, SOCK_DGRAM, 0)) < 0) -@@ -111,7 +116,7 @@ +@@ -111,7 +119,7 @@ server.sin_addr.s_addr = INADDR_ANY; client.sin_family = AF_INET; |