christos
ebebb0245d
Another uninitialized var XXX: GCC
2006-05-14 01:26:34 +00:00
christos
87e155c5c7
rename alloc() to emalloc().
2006-05-13 22:34:50 +00:00
christos
01caf31f3a
Cleanup KNF, WARNS=4.
...
Phew, this started just to make set() static so that coverity does not get
confused.
2006-05-13 20:46:15 +00:00
tron
2d77f6d3d5
Add "iscsi" target which install the iSCSI configuration files.
...
This will stop e.g. "/etc/security" complaining about these files
missing after a sucessful run of "postinstall"
2006-05-12 12:43:28 +00:00
tron
ef526ff868
Check for and install "/etc/rc.d/iscsi_target".
2006-05-12 07:16:47 +00:00
mrg
bf869c6019
apply -Wno-pointer-sign to print-802_11.c as well.
2006-05-12 02:00:46 +00:00
mrg
e13fd87f5f
use -Wno-pointer-sign with GCC4.
2006-05-12 01:54:57 +00:00
mrg
132e581078
remove a couple of extra externs
2006-05-12 01:54:32 +00:00
mrg
accf138991
netbsd authunix_create() actually takes an array of int not gid_t.
2006-05-12 01:28:34 +00:00
mrg
3479c0a6a2
can't fit "256" in an 8bit value, don't have a switch case for it.
2006-05-12 01:27:27 +00:00
mrg
126f7e1139
since ar_tha() can return NULL, don't pass it directly to functions
...
that expect real addresses. explicitly KASSERT() that it is not
NULL in the kernel and just avoid using it userland.
(the kernel could be more defensive about this, but, until now it
would have just crashed anyway.)
2006-05-12 01:20:33 +00:00
mrg
16efbf8575
don't do the -Wno-pointer-sign dance for host programs.
2006-05-12 01:18:25 +00:00
mrg
43419a069b
sprinkle a little (char *) to quell GCC4.
2006-05-11 23:50:15 +00:00
mrg
aadd7d4847
sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.
2006-05-11 23:16:28 +00:00
mrg
2a5124235b
if we are going to cast the 3rd argument to accept_info_request(),
...
use the right type.
2006-05-11 21:17:02 +00:00
mrg
4a7d55e29a
our recvfrom() uses socklen_t *.
2006-05-11 19:25:28 +00:00
tron
203b156add
Include "bsd.own.mk" to get the definition of "HAVE_GCC".
2006-05-11 10:32:37 +00:00
mrg
86533d64ca
sprinkle some -fno-strict-aliasing with GCC4.
2006-05-11 09:08:09 +00:00
mrg
10c621b36e
sprinkle some -Wno-pointer-sign for now.
2006-05-11 08:55:10 +00:00
mrg
9f5cbae0f8
res_search() takes u_char * as 4th argument - pass one.
2006-05-11 08:44:56 +00:00
mrg
757868b20a
include <string.h>
2006-05-11 08:44:07 +00:00
mrg
953a812e66
le64 "big endian" is not printable by PRIu64 - cast via (u_int64_t).
2006-05-11 08:43:16 +00:00
mrg
c6d4b90983
use -fno-strict-aliasing with GCC4.
2006-05-11 08:41:07 +00:00
mrg
c48f394145
assign to wd.wd_recvtime rather than casting a pointer to it
...
to a time_t pointer to call time(3).
2006-05-11 08:40:28 +00:00
mrg
74e0882190
rs_data is u_char *, so assign it from a u_char *.
2006-05-11 08:38:38 +00:00
mrg
c23edde436
inet_ntop() wants char[] not u_char[].
2006-05-11 08:37:24 +00:00
mrg
9aae0c27f9
u_char -> char for several things:
...
- inet_ntop()
- if_indextoname()
- variable assignment matching
char -> u_char in one place for variable assignment matching
2006-05-11 08:35:47 +00:00
mrg
5b2e2e784b
use -fno-strict-aliasing for dump.c with GCC4
2006-05-11 07:20:19 +00:00
mrg
8f1fc6cc86
use -fno-strict-aliasing for utils.c with GCC4
2006-05-11 07:19:33 +00:00
mrg
58d1fc7bc5
use -fno-strict-aliasing with GCC4.
2006-05-11 07:17:41 +00:00
mrg
c90e965e45
only do the previous for GCC4
2006-05-11 07:15:17 +00:00
mrg
fde08302e9
use -Wno-pointer-sign and -fno-strict-aliasing for now.
2006-05-11 07:13:24 +00:00
mrg
1eb16ad182
properly match char * with char * instead of u_char *.
2006-05-11 07:12:11 +00:00
mrg
9ef684e646
pass an array of gid_t, not int, to getgrouplist().
2006-05-11 07:11:08 +00:00
mrg
0dc9fb54b5
u_char -> char in one place.
2006-05-11 07:08:40 +00:00
mrg
a7416240a5
add -fno-strict-aliasing when using GCC4.
2006-05-11 07:07:08 +00:00
mrg
3bf6d5997d
since i2ostrvis() is passed always passed u_char *, make it so.
2006-05-11 07:02:01 +00:00
mrg
1fa98f5b05
- use socklen_t where appropriate
...
- avoid lvalue casts
2006-05-11 06:59:40 +00:00
mrg
4bc6feceb6
end the argument list to exec*(3) with a NULL instead of a bare '0', as
...
the latter isn't a pointer context in these varargs functions.
2006-05-11 00:22:52 +00:00
rpaulo
12d9aaea8c
PR 33462: default maxinterval was not being initialized properly.
...
From Matthias Scheller.
From KAME sources.
2006-05-10 22:30:33 +00:00
mrg
084c052803
quell GCC 4.1 uninitialised variable warnings.
...
XXX: we should audit the tree for which old ones are no longer needed
after getting the older compilers out of the tree..
2006-05-10 21:53:14 +00:00
mrg
67c9075410
rename clog to sup_clog. (ugh. we don't even have clog())
2006-05-10 21:45:40 +00:00
perseant
49b22a9fa1
Fix yesterday's patch: use the correct field when printing partial segment
...
creation time in the version > 1 case.
2006-05-10 18:47:45 +00:00
perseant
b1c92f5a16
Report segment and partial-segment timestamps correctly on big-endian systems.
2006-05-09 22:20:38 +00:00
mrg
0c37c63edc
change (mostly) int to socklen_t. GCC 4 doesn't like that int and
...
socklen_t are different signness.
2006-05-09 20:18:05 +00:00
christos
449dbee9f0
Compile with OPENSSL.
2006-05-06 17:51:46 +00:00
rpaulo
de8db47547
Add support for RFC 3542 Adv. Socket API for IPv6 (which obsoletes 2292).
...
* RFC 3542 isn't binary compatible with RFC 2292.
* RFC 2292 support is on by default but can be disabled.
* update ping6, telnet and traceroute6 to the new API.
From the KAME project (www.kame.net).
Reviewed by core.
2006-05-05 00:03:21 +00:00
skrll
e8f1031be8
RCSId police.
2006-04-28 07:20:39 +00:00
drochner
741f357fc1
Build libpcap-0.9.4 from src/dist.
...
While there are some open issues, particulary wrt support of old
NetBSD-specific interfaces, it is better to get the code some public
testing before NetBSD-4 is branched.
2006-04-25 18:36:44 +00:00
christos
313c1811bf
Coverity CID 1774, 1773: Don't leak open file descriptors or leave temp
...
file turds on error.
2006-04-25 18:02:02 +00:00