Module Name: src Committed By: joerg Date: Sat Oct 8 17:37:32 UTC 2016
Modified Files: src/sys/net: if_spppsubr.c Log Message: Use uint8_t for opt as some of the values don't fit into the (positive) range of a signed char. To generate a diff of this commit: cvs rdiff -u -r1.155 -r1.156 src/sys/net/if_spppsubr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/net/if_spppsubr.c diff -u src/sys/net/if_spppsubr.c:1.155 src/sys/net/if_spppsubr.c:1.156 --- src/sys/net/if_spppsubr.c:1.155 Mon Oct 3 11:06:06 2016 +++ src/sys/net/if_spppsubr.c Sat Oct 8 17:37:32 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: if_spppsubr.c,v 1.155 2016/10/03 11:06:06 ozaki-r Exp $ */ +/* $NetBSD: if_spppsubr.c,v 1.156 2016/10/08 17:37:32 joerg Exp $ */ /* * Synchronous PPP/Cisco link level subroutines. @@ -41,7 +41,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.155 2016/10/03 11:06:06 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.156 2016/10/08 17:37:32 joerg Exp $"); #if defined(_KERNEL_OPT) #include "opt_inet.h" @@ -3208,7 +3208,7 @@ sppp_ipcp_tlf(struct sppp *sp) static void sppp_ipcp_scr(struct sppp *sp) { - char opt[6 /* compression */ + 6 /* address */ + 12 /* dns addresses */]; + uint8_t opt[6 /* compression */ + 6 /* address */ + 12 /* dns addresses */]; #ifdef INET uint32_t ouraddr; #endif