christos
8ee626c9fa
improve error messages (remove \n, use __func__, etc)
2015-06-16 23:04:13 +00:00
christos
553f814b0d
remove unused variable
2013-11-08 01:10:23 +00:00
joerg
ca8921efd7
Use __dead
2011-11-25 13:18:22 +00:00
jnemeth
4c99f4ecf2
unlink temp file in error case
2006-05-28 11:33:56 +00:00
jnemeth
305a7bfee2
In bincvt() use fdopen() on the fdesc returned by mkstemp(), instead
...
of fopen().
2006-05-26 11:45:31 +00:00
jnemeth
693e9aec19
Coverity CID 2977: failed to check for error return from ftell()
2006-05-26 11:13:20 +00:00
jnemeth
e10c71d2be
Coverity CID 3685: memory leak
...
While here, check for failure to create temp file in bincvt() and close
unused file descriptor.
XXX bincvt() should be rewritten to use fork()/exec() instead of system().
2006-05-26 10:59:58 +00:00
jnemeth
1124e30e6e
Coverity CID 3027: possible dereference of NULL pointer.
...
Also don't bother zero'ing memory immediately before reading the
.SYS file into it and check for errors while reading the file.
2006-05-26 09:25:27 +00:00
mrg
1eb16ad182
properly match char * with char * instead of u_char *.
2006-05-11 07:12:11 +00:00
rittera
9f5b030f1a
#included sys/lock.h which is apparently needed in order for ndiscvt to
...
compile on NetBSD.
2006-04-03 16:29:57 +00:00
rittera
6f0360f3e9
applied zul's ndiscvt patch
2006-03-30 23:21:06 +00:00
rittera
9f9573165d
added the original files from FreeBSD in usr.sbin/ndiscvt/
2006-03-30 23:00:02 +00:00