Commit Graph

157 Commits

Author SHA1 Message Date
christos
f9546f4b11 put back initialization of the buffer which was accidentally removed.
XXX: pullup-7.
2015-01-27 02:37:18 +00:00
joerg
16af9e03ea Use positive checks for GCC 4.1. Deal with missing HAVE_GCC. 2014-12-23 20:26:30 +00:00
christos
d1118a5e47 Change the conditional from >= 45 to != 4 to handle the non-gcc case. 2014-12-23 20:19:08 +00:00
christos
41cafa369b Putting () around conditionals avoids the error when the variables are
undefined, OTOH it does the wrong thing when comparing when "no".
2014-12-23 19:11:14 +00:00
christos
18053c39af Fix for gcc-4.1 2014-12-23 19:05:58 +00:00
christos
988fc89e95 fixes for gcc-4.1 2014-12-23 19:04:37 +00:00
christos
de935cd2ad Fixes for gcc-4.1 2014-12-23 19:04:18 +00:00
christos
1cff2a42a0 fix for -5, MKREPRO is not always defined 2014-12-23 18:56:15 +00:00
joerg
7a390569d2 myasprintf (wtf) passes down a format string, so use __printflike. 2014-12-23 15:47:32 +00:00
christos
8de392a9c0 avoid shadowing of recv. 2014-12-22 04:23:58 +00:00
christos
22b6c4fc55 avoid shadowing of log2 on some platforms. 2014-12-22 04:21:47 +00:00
christos
abc7bdd304 Since we've added the mdnstries keyword, we need to regenerate the
ntp_parser.[ch] files, otherwise we get syntax errors. Our yacc seems
to be producing a working parser now, so let's use it.
2014-12-20 16:52:21 +00:00
prlw1
f44489f8dc MKINET6=no build fixes
http://mail-index.netbsd.org/tech-net/2014/12/13/msg004898.html
2014-12-20 13:15:48 +00:00
uebayasi
1104d021af Fix signed vs unsigned errors. 2014-12-20 08:38:47 +00:00
christos
eb7b95c740 finish import 2014-12-20 02:59:24 +00:00
christos
ccbc10b41f I will let others decide if we should grow this wart... 2014-12-19 20:48:55 +00:00
christos
79fa4578d4 No, bash is not the posix shell. Why do you need the shell anyway? 2014-12-19 20:46:47 +00:00
christos
ea66d79595 Merge conflicts 2014-12-19 20:43:14 +00:00
christos
b8ecfcfef0 Import ntp 4.2.8 2014-12-19 20:37:31 +00:00
joerg
5d029cc2d6 Replace very question pointer games to override const, mark the member
writeable when inside the guts of the library.
2014-11-23 01:47:59 +00:00
dholland
b7b7574d3b Reorg docs, part 1:
Move all the reference manuals to subdirs of /usr/share/doc/reference.
We have subdirs ref1-ref9, corresponding to man page sections 1-9.

Everything that's the reference manual for a program (sections 1, 6,
8), C interface (sections 2, 3), driver or file system (section 4),
format or configuration (section 5), or kernel internal interface
(section 9) belongs in here.

Section 7 is a little less clear: some things that might go in section
7 if they were a man page aren't really reference manuals. So I'm only
putting things in reference section 7 that are (to me) clearly
reference material, rather than e.g. tutorials, guides, FAQs, etc.
This obviously leaves some room for debate, especially without first
editing the docs with this distinction in mind, but if people hate
what I've done things can always be moved again.

Note also that while roff macro man pages traditionally go in section
7, I have put all the roff documentation (macros, tools, etc.) in one
place in reference/ref1/roff. This will make it easier to find and
also easier to edit it into some kind of coherent form.
2014-07-05 19:22:41 +00:00
mrg
ac641cb906 remove remaining makefile support for GCC < 45 that i found. 2014-06-14 20:49:36 +00:00
kardel
b538a8f986 remove stray 'return 0;' that effectively disabled atouint().
Hi Christos!
2014-04-01 17:34:44 +00:00
joerg
f866147165 offs_from_utc is known to be small, so explicitly cast it to int. 2014-02-27 18:12:41 +00:00
joerg
39ea0713df Use abs for difference of integers. 2014-02-27 18:12:11 +00:00
joerg
7088bf673b Use labs for long arguments and fabs for double ones. 2014-02-27 18:11:41 +00:00
mlelstv
ba1d7138dc stoa() already includes the scope, no need to print it twice. 2014-01-26 02:21:08 +00:00
matt
bf70954af3 Fix awk programs to use $$ so make doesn't eat each $ 2014-01-24 23:42:31 +00:00
joerg
4a937800dd Support LLVM build. 2014-01-23 14:06:28 +00:00
kardel
70e8e53eb7 fix voluntary self-destruct (kill(0, SIGUP)) after successful int_res run and interface change 2014-01-20 19:03:33 +00:00
christos
b40d27d77a use the old style no-error for gcc-4.1 2014-01-20 01:52:54 +00:00
christos
6bdb9744ad ignore format errors for old gcc 2014-01-20 01:43:34 +00:00
christos
65ad45b7a0 gcc 4.1 does not have -Wno-error 2014-01-20 01:37:53 +00:00
christos
e4e9bd6876 Gcc-4.1 does not have -Wno-error 2014-01-20 01:32:12 +00:00
roy
9a2df3ff00 Do not try to bind to un-useable IPv6 addresses. 2014-01-17 17:25:47 +00:00
apb
bebb9d5ca8 For MKREPRO, instead of using __DATE__ and __TIME__
in ntp_calendar.c::ntpcal_get_build_date(), use a date/time
extracted from the importdate file.
2014-01-15 14:40:30 +00:00
apb
b7f6cc1193 If the "importdate" file exists, do not embed the date/time/build number
in the generated version.  This logic was present in an earlier revision
of this file, but was lost in CVS revision 1.3 dated 2013-12-28.

Add a comment to make it less likely that this code is lost again.
2014-01-15 12:58:23 +00:00
joerg
b3199998db Fix format strings. 2014-01-07 02:10:49 +00:00
kardel
eaac9e3d28 - add new clk_sel240x.c 2014-01-05 15:47:23 +00:00
kardel
3e56dcea0a - enable the rest of the PARSE clocks (missed config option when merging) 2014-01-05 15:39:13 +00:00
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