Commit Graph

117 Commits

Author SHA1 Message Date
kardel
ca3d18325a - enable PARSE clocks (missed config option when merging)
- remove all conflict markers/finish merge in refclock_parse.c:1.10
2014-01-05 15:13:36 +00:00
joerg
ba1a5140ab Don't bother with the h (short) modifier. The predicated use of bswap16
confuses the type tracking in clang and the use here is not portable
anyway, since it assumes short == int16_t.
2014-01-03 20:26:45 +00:00
joerg
30b2999ac3 Update warning flags to reflect the fixes. Restrict GCC flags to GCC. 2014-01-02 21:38:38 +00:00
joerg
f4afb4e801 Don't pass in a format string, but flags for using %f / %g and the
desired precision. Allows format string verification to work correctly.
2014-01-02 21:37:00 +00:00
joerg
1a12c81543 Add format string attribute for better detection. 2014-01-02 21:35:50 +00:00
joerg
f7fd78b752 Avoid pointer operations on the format string. 2014-01-02 21:35:19 +00:00
joerg
8531f75b5e Use separate variables for the format strings to get working format
string checking with both GCC and Clang.
2014-01-02 18:26:03 +00:00
christos
f69b3e7990 fd == 0 is a valid descriptor! 2014-01-01 19:52:58 +00:00
pgoyette
afa6e1a420 Remove duplicate/old declaration of 'host' now that we allocate it on stack. 2013-12-31 21:37:01 +00:00
christos
02a7f722be pointless to call alloca for a 1K path string... Just allocate it on the stack! 2013-12-31 20:56:29 +00:00
christos
08f2fa820a - regen using byacc.
Now that we can generate the parser files we yacc, we could create a tool
keyword-gen so that we can generate all the files on the fly. It is not worth
it though.
2013-12-30 19:06:45 +00:00
christos
31c4e4c2ef find ntp_scanner.h 2013-12-30 17:48:13 +00:00
christos
1aa1a11e17 regen 2013-12-30 17:45:40 +00:00
christos
a04a202dbc put back mdstries 2013-12-30 17:42:19 +00:00
christos
382061577d prevent coredumps from syntax errors in the config file causing negative
include indexes
2013-12-30 17:41:57 +00:00
christos
4c05c4493f remove unused variables 2013-12-30 01:34:22 +00:00
christos
a05b8588f7 Handle ancient vax gcc. 2013-12-29 03:32:00 +00:00
christos
6bb3b8411a not all characters are born signed. 2013-12-29 03:26:07 +00:00
christos
6a493d6bc6 Some html files were removed 2013-12-28 18:06:41 +00:00
christos
966c0b1b14 32 bit build fixes. 2013-12-28 17:00:50 +00:00
mrg
d3f9e78087 remove (void *) casts when passing const pointers to a const void *
taking function.  ...
2013-12-28 13:27:39 +00:00
christos
94d1f47f5e adjust for non-amd64 build 2013-12-28 03:51:52 +00:00
christos
2073dae78f update mkver 2013-12-28 03:36:15 +00:00
christos
3683443505 mention manual handling of man pages 2013-12-28 03:29:46 +00:00
christos
2950cc38ef resolve conflicts 2013-12-28 03:20:12 +00:00
christos
bab87fff35 adjust for new ntp and add the generated man pages 2013-12-28 03:19:43 +00:00
christos
8585484ef8 import devel ntpd to avoid amplification attacks. 2013-12-27 23:30:11 +00:00
christos
eeceecfe62 fix unused variable warnings 2013-10-20 02:47:38 +00:00
joerg
3657cb7f1d Update LLVM/Clang snapshot to r191105. This brings in a better detection
of unused static variables and functions. Disable this for some external
code and for ioconf.c in the kernel.
2013-09-21 22:28:12 +00:00
njoly
856537a70d Use mdoc macro for literal block display. 2012-11-14 08:26:29 +00:00
kardel
6d4483818f re-enable broadcast client config after interface re-scanning
make broadcast transmission work again
2012-08-17 22:37:26 +00:00
christos
0f892d675b add cast. 2012-08-12 07:22:24 +00:00
christos
97b3f8422e - make the append function to not append past the end of the string
- use the append function some more
2012-08-12 06:16:51 +00:00
kardel
b3d86d3e3a fix some fallout from append correction 2012-08-11 20:09:08 +00:00
christos
9bfa795a77 Homogenize all strn{cpy,cat} and snprintf() to a single append function to
prevent incorrect usage and buffer overflow.
2012-08-10 08:22:49 +00:00
joerg
ab7e24ab4b Disable warning about broken strncat usage from clang for now.
The code is technically not going to overflow, but completely messed up.
2012-08-09 14:40:52 +00:00
jnemeth
98f55161d5 PR/46612 - Lloyd Parkes -- add a terminating newline to error messages 2012-06-25 20:23:43 +00:00
christos
720edde670 fix printf format. 2012-02-09 17:53:56 +00:00
christos
b8867d0ef6 There is no point in creating an entry point for emalloc(), when all the other
functions are just defined in terms of ereallocz(). Fixes the sun2 build
because it avoids the conflict with emalloc() from libutil.
2012-02-04 16:31:02 +00:00
he
dedd1c6538 Re-define emalloc(arg) to ntp_emalloc(arg), so that this can be linked
statically on NetBSD as well, since emalloc() conflicts with the entry
on our -lutil.
2012-02-04 14:56:58 +00:00
christos
5744870aac cleanup compilation (not TRT, but the expedient way) 2012-02-03 21:36:40 +00:00
christos
26053bd797 don't bother with ifdef's, just grab the biggest type you can. 2012-02-03 21:35:55 +00:00
christos
6a250e03e2 cleanup last warnings, and remove local warnings overrides. 2012-02-03 16:33:10 +00:00
christos
0c82c01637 using 2 casts to fix an unsigned-signed comparison is a sign that this it
is done incorrectly. The RHS is guaranteed positive at this point so cast
it to unsigned to match the LHS.
2012-02-03 14:36:51 +00:00
kardel
2bc1b7bd9a Clang compile fix from Joerg Sonneberger approved by releng. 2012-02-03 10:20:29 +00:00
kardel
2f3ccb499e cleanup printf fmt differences between i386/amd64 2012-02-01 22:48:15 +00:00
kardel
617a40a056 use WARNS=0 until const issue is resolved 2012-02-01 21:22:19 +00:00
kardel
9b98de2bc5 initialize min_dist 2012-02-01 21:21:25 +00:00
kardel
cb314bfae7 build libopts with WARNS=0 for now 2012-02-01 20:49:09 +00:00
kardel
a2545411b3 back to WARNS=4 (constify and signedness corrections) 2012-02-01 20:48:01 +00:00