summaryrefslogtreecommitdiffstats
path: root/watchquagga
Commit message (Collapse)AuthorAgeFilesLines
* build: Remove the old PIC/PIE patch, let libtool sort it outPaul Jakma2015-09-031-2/+1
| | | | | | | * Remove the old change from '08 to add in PIE arguments at automake level. Versions of libtool since then know how to deal with -fpie and do the right thing according to whether its building shared or executable objects. So just pass '-fpie' as CFLAG and let libtool do its thing.
* watchquagga.c does not compile without warningsDonald Sharp2015-07-291-3/+5
| | | | Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* build: add --enable-werrorDavid Lamparter2015-04-211-1/+1
| | | | | | | | | | | | | | | This allows enabling -Werror in a consistent way. Note that this is different from just specifiying it in CFLAGS, since that would either break configure tests (if done on ./configure), or would override configure's CFLAGS (if done on make). Using --enable-werror instead provides a new WERROR variable that is additionally used during make with a consistent set of warning flags. The tests/ directory is exempt. (Rationale being, better to have more tests than pedantically complain about them.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* watchquagga: break excessively long help stringDavid Lamparter2015-04-211-9/+14
| | | | | | | watchquagga's command line help string exceeds the ISO C maximum string length (4095 characters). Just break it in two. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* *: use long long to print time_tDavid Lamparter2015-04-191-4/+6
| | | | | | | | | | | | Since we can't assume time_t to be long, int, or even long long, this consistently uses %lld/long long (or %llu/unsigned long long in a few cases) to print time_t/susecond_t values. This should fix a bunch of warnings, on NetBSD in particular. (Unfortunately, there seems to be no "PRId64" style printing macro for time_t...) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* build: get rid of INCLUDES, use AM_CPPFLAGSDavid Lamparter2015-02-141-1/+1
| | | | | | | | | | | | INCLUDES in configure.ac was not used at all, and INCLUDES in Makefile.am is supposed to be AM_CPPFLAGS these days. Reduces warnings spewed during bootstrap/autoreconf. Signed-off-by: David Lamparter <equinox@opensourcerouting.org> Acked-by: Greg Troxel <gdt@ir.bbn.com> Acked-by: Feng Lu <lu.feng@6wind.com> Acked-by: Paul Jakma <paul@jakma.org>
* *: use array_size() helper macroBalaji.G2012-10-251-1/+2
| | | | | | | | Use the array_size() helper macro. Replaces several instances of local macros with the same definition. Reviewed-by: Scott Feldman <sfeldma@cumulusnetworks.com> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* build: allow configure and build in a separate directoryVincent Bernat2012-06-251-1/+1
| | | | | | | | | | | Some .h files in lib/ are autogenerated. The search path should include the build directory and the source directory. They usually match but sometimes, they may be different. For example: $ mkdir build $ cd build $ ../configure $ make
* build: delete .cvsignore filesDenis Ovsienko2011-12-131-13/+0
|
* delete CVS keywordsDenis Ovsienko2011-09-271-2/+0
|
* all: check return value from daemon() callStephen Hemminger2009-08-131-1/+5
| | | | | | * */*main.c: (main) Current versions of Gcc warn if the return value for daemon() is not checked. So add a simple test and exit on failure.
* [administrivia] Git should ignore backup files and .loT filesPaul Jakma2008-08-221-0/+3
|
* [trivia] Remove ChangeLog files, as this data is now maintained in SCMPaul Jakma2008-08-221-59/+0
|
* [build] Test for GNU-style PIE support in toolchain and enablePaul P Komkoff Jr2008-08-221-0/+3
| | | | | | | | | | | 2008-08-13 Paul P Komkoff Jr <i@stingr.net> * configure.ac: add a configure flag and autoconf macro, which will determine if your toolchain supports PIE. * */Makefile.am: add corresponding CFLAGS and LDFLAGS into appropriate places. Signed-off-by: Paul Jakma <paul@quagga.net>
* [administrivia] Add .gitignore files, based on .cvsignores.Paul Jakma2008-08-221-0/+13
|
* [autoconf] bugs 162,303,178: Fix 'present but can not be compiled' warningsPaul Jakma2007-05-101-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | 2007-05-09 Paul Jakma <paul.jakma@sun.com> * configure.ac: sys/conf.h depends on sys/param.h, at least on FBSD 6.2. (bug #363) Should check for in_pktinfo for IRDP 2006-05-27 Paul Jakma <paul.jakma@sun.com> * configure.ac: General cleanup of header and type checks, introducing an internal define, QUAGGA_INCLUDES, to build up a list of stuff to include so as to avoid 'present but cant be compiled' warnings. Misc additional checks of things missing according to autoscan. Add LIBM, for bgpd's use of libm, so as to avoid burdening LIBS, and all the binaries, with libm linkage. Remove the bad practice of using m4 changequote(), just quote the []'s in the case statements properly. This should fix bugs 162, 303 and 178. * */*.{c,h}: Update all HAVE_* to the standard autoconf namespaced HAVE_* defines. I.e. HAVE_SA_LEN -> HAVE_STRUCT_SOCKADDR_SA_LEN, * bgpd/Makefile.am: Add LIBM to bgpd's LDADD, for pow().
* 2005-02-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-02-172-2/+6
| | | | * watchquagga.c: (handle_read) Use new ERRNO_IO_RETRY macro.
* 2005-02-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-02-162-13/+10
| | | | | * watchquagga.c: (try_connect) Use new set_nonblocking function instead of calling fcntl directly.
* 2005-01-12 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-01-122-5/+19
| | | | | | | | | | | * watchquagga.c: (run_job) Fix bug: delay.tv_sec was being used without having been initialized when the "force" argument was true. (try_restart) When phased restart is stopping the routing daemons, it should tell run_job to update the restart interval. (phase_check) In final step of phased restart when the routing daemons are being started again, tell run_job not to update the restart interval (this is now done when the daemons are stopped).
* 2004-12-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2004-12-292-10/+15
| | | | | * watchquagga.c: In several places, cast pid_t to int for printf to avoid complaints on Solaris 8.
* 2004-12-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2004-12-292-22/+9
| | | | * watchquagga.c: Fix headers: get most stuff from zebra.h.
* 2004-12-23 Paul Jakma <paul@dishone.st>paul2004-12-232-1/+6
| | | | * watchquagga.c: Add missing getopt.h include
* 2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2004-12-222-22/+31
| | | | | * watchquagga.c: Try for gcc 2.95 compatibility (avoid %z and a tricky initialization).
* 2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2004-12-222-2/+51
| | | | | | * watchquagga.c: Add -b option to circumvent difficulties passing embedded spaces in command-line arguments. This is an ugly hack, we should probably use a config file instead.
* 2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2004-12-222-3/+12
| | | | * watchquagga.c: Use new config.h define for DAEMON_VTY_DIR.
* 2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2004-12-222-1/+13
| | | | * watchquagga.c: Get PATH_WATCHQUAGGA_PID from config.h.
* 2004-12-21 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2004-12-222-0/+17
| | | | * .cvsignore: Added.
* 2004-12-21 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2004-12-223-0/+1360
* {ChangeLog,watchquagga.c,Makefile.am}: Created.