diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-01 17:00:41 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-01 17:00:41 +0000 |
commit | 173d01b7c1e9a5d7ba5a6c696a8019061dc41bda (patch) | |
tree | 8c8b7bb08108dca24afcee3bbe301e8ba6f76e81 /sys/lib/libsa/bootp.c | |
parent | 3e42965de9054a39afc4957c4f099218e709ae51 (diff) |
strcpy/strcat/sprintf removal in all bootblocks. various testing by
various people. outside of some messy things in src/gnu, only one
thing in the main tree now violates this rule: bind
Diffstat (limited to 'sys/lib/libsa/bootp.c')
-rw-r--r-- | sys/lib/libsa/bootp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/lib/libsa/bootp.c b/sys/lib/libsa/bootp.c index 1de33af08b6..5e1eaeed887 100644 --- a/sys/lib/libsa/bootp.c +++ b/sys/lib/libsa/bootp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bootp.c,v 1.9 2002/03/14 01:27:07 millert Exp $ */ +/* $OpenBSD: bootp.c,v 1.10 2003/06/01 17:00:32 deraadt Exp $ */ /* $NetBSD: bootp.c,v 1.10 1996/10/13 02:28:59 christos Exp $ */ /* @@ -80,18 +80,18 @@ bootp(sock) } rbuf; #ifdef BOOTP_DEBUG - if (debug) + if (debug) printf("bootp: socket=%d\n", sock); #endif if (!bot) bot = getsecs(); - + if (!(d = socktodesc(sock))) { printf("bootp: bad socket. %d\n", sock); return; } #ifdef BOOTP_DEBUG - if (debug) + if (debug) printf("bootp: d=%x\n", (u_int)d); #endif |