freebsd-ports/net-mgmt/cdpr/files/patch-conffile.c
Michael Landin 83c3b662a5 - fix build failure on 4.x
Notified by:	pointyhat
2006-11-08 14:04:29 +00:00

22 lines
315 B
C

$FreeBSD$
--- conffile.c.orig
+++ conffile.c
@@ -57,6 +57,7 @@
struct hostent *h;
char *addy;
int port;
+ char *tport;
if (ip && url)
{
@@ -70,7 +71,7 @@
else
{
strtok(ip,":");
- char *tport = strtok(NULL,":");
+ tport = strtok(NULL,":");
port = atoi(tport);
}
/*