2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

sizeof style

This commit is contained in:
Andreas Gustafsson
2001-11-27 01:56:32 +00:00
parent b414eb4312
commit 91cd0f93ad
70 changed files with 361 additions and 362 deletions

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: wire_test.c,v 1.61 2001/09/29 18:23:56 gson Exp $ */
/* $Id: wire_test.c,v 1.62 2001/11/27 01:55:29 gson Exp $ */
#include <config.h>
@@ -126,7 +126,7 @@ main(int argc, char *argv[]) {
f = stdin;
bp = b;
while (fgets(s, sizeof s, f) != NULL) {
while (fgets(s, sizeof(s), f) != NULL) {
rp = s;
wp = s;
len = 0;
@@ -146,7 +146,7 @@ main(int argc, char *argv[]) {
printf("bad input format: %d\n", len);
exit(1);
}
if (len > (sizeof b) * 2) {
if (len > sizeof(b) * 2) {
printf("input too long\n");
exit(2);
}