diff options
Diffstat (limited to 'net/poptop/patches/patch-ak')
-rw-r--r-- | net/poptop/patches/patch-ak | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/net/poptop/patches/patch-ak b/net/poptop/patches/patch-ak new file mode 100644 index 00000000000..f44698382a9 --- /dev/null +++ b/net/poptop/patches/patch-ak @@ -0,0 +1,31 @@ +$NetBSD: patch-ak,v 1.1 2011/05/08 17:07:25 christos Exp $ + +--- ctrlpacket.c.orig 2011-05-08 13:00:58.000000000 -0400 ++++ ctrlpacket.c 2011-05-08 13:00:50.000000000 -0400 +@@ -146,7 +146,7 @@ + } else { + /* debugging */ + if (pptpctrl_debug) { +- syslog(LOG_DEBUG, "CTRL: I wrote %d bytes to the client.", packet_size); ++ syslog(LOG_DEBUG, "CTRL: I wrote %zu bytes to the client.", packet_size); + syslog(LOG_DEBUG, "CTRL: Sent packet to client"); + } + return bytes_written; +@@ -237,7 +237,7 @@ + return(0); + memcpy(buffer, packet, bytes_ttl); + } +- syslog(LOG_ERR, "CTRL: Error reading ctrl packet length (bytes_ttl=%d): %s", bytes_ttl, strerror(errno)); ++ syslog(LOG_ERR, "CTRL: Error reading ctrl packet length (bytes_ttl=%zd): %s", bytes_ttl, strerror(errno)); + return -1; + } + /* FALLTHRU */ +@@ -291,7 +291,7 @@ + return(0); + memcpy(buffer, packet, bytes_ttl); + } +- syslog(LOG_ERR, "CTRL: Error reading ctrl packet (bytes_ttl=%d,length=%d): %s", bytes_ttl, length, strerror(errno)); ++ syslog(LOG_ERR, "CTRL: Error reading ctrl packet (bytes_ttl=%zd,length=%d): %s", bytes_ttl, length, strerror(errno)); + return -1; + } + /* FALLTHRU */ |