christos
d6c5440ef4
PR/50824: David Binderman: Limit scanf width
2016-02-17 19:51:29 +00:00
christos
8ee626c9fa
improve error messages (remove \n, use __func__, etc)
2015-06-16 23:04:13 +00:00
christos
0a77b69ab6
fix unused variable warnings.
2013-10-19 17:16:37 +00:00
jakllsch
6c1cfa38a7
use IPv6 Documentation Prefix (2001:db8::/32) instead of unallocated
...
d000🅰️ :/32 prefix
2013-09-08 19:12:18 +00:00
joerg
dccf569e0e
Use __dead.
2011-08-29 20:38:53 +00:00
joerg
21f7e41a91
Use of non-literal format string.
2011-08-25 16:22:43 +00:00
christos
0d33c75c01
use memcpy to avoid type punning.
2011-08-16 12:49:13 +00:00
christos
0f2de03a73
remove gcc-4.5 hack and check fileno instead.
2011-08-16 12:39:29 +00:00
joerg
975a569b2d
Passes with the relaxed array boundary check in clang
2011-08-09 13:04:28 +00:00
mrg
5ed322d90a
apply some -Wno-error/-Wno-enum-compare/-Wno-array-bounds.
...
this should be looked at more closely.
2011-06-22 05:23:53 +00:00
mrg
c111245a78
apply some -Wno-error and/or -fno-strict-aliasing.
...
all of this should be looked at closer, but some of them are not
very trivial.
2011-06-22 02:49:41 +00:00
wiz
f62c7cc384
Typo, and markup consistency. From YOMURA Masanori.
2011-04-25 22:45:31 +00:00
wiz
baacf5e062
Fix fd leak in error case. Found by cppcheck.
2011-01-04 09:14:42 +00:00
wiz
f5bd7d1980
Close fd in error case. Found by cppcheck.
2011-01-04 09:13:22 +00:00
joerg
bfbe4c3572
Use HUGE_VAL instead of INFINITY as positive infinity (or maximum value)
...
is good enough and the side effects of ISO C99 7.12 (4) are not desired.
2010-03-01 00:13:47 +00:00
he
76d4444c78
When using -lcurses, you also need -lterminfo.
...
This fixes the build for sun2, and also builds with LDSTATIC=-static,
since archive libraries don't record inter-library dependencies.
2010-02-06 23:45:24 +00:00
mbalmer
40406154b1
Fix typo in comment.
2010-01-06 06:30:37 +00:00
lukem
7affd6558f
Fix -Wsign-compare issues
2009-04-15 00:13:50 +00:00
joerg
f4bfcdb4ae
Improve markup.
2009-04-08 13:36:32 +00:00
joerg
7ec31b06bd
Fix markup, making it symmetrical between filter6_values and
...
filter_values.
2009-03-15 12:30:09 +00:00
joerg
cba79e0ec4
Add support for source address hashhing in ALTQs WFQ. This allows to
...
easily distribute bandwidth for huge number of clients for incoming
traffic.
2008-09-11 17:58:59 +00:00
lukem
66176dfdff
Rename MKPRIVATELIB to LIBISPRIVATE, to make it clearer that this is
...
a variable that is used by in-tree Makefiles to control behaviour.
(MKsomevar variables are generally intended to be controlled by the end-user)
2008-05-03 14:48:30 +00:00
xtraeme
7097d2c139
Constify and other misc fixes to make this build with WARNS=4.
2008-05-02 19:07:44 +00:00
plunky
6a6cf05532
fix mdoc warning: remove extraneous .El
2007-04-13 18:17:38 +00:00
wiz
3cdde55f8e
Use more markup, remove superfluous Ns calls.
2006-12-23 08:25:44 +00:00
peter
91c703ae73
Since the -D option doesn't do anything useful at all, remove it.
2006-11-26 11:38:07 +00:00
peter
ba31dc0ca8
- Show statistics immediately, not after a 5 second delay.
...
- For cbq, cdnr, hfsc and priq: if previous stats aren't available yet
then don't show the packet/byte rate.
- Place the count check before the delay and after the stats printing.
This fixes PR #32847
ok tron@
2006-10-28 11:43:02 +00:00
wiz
c7e99862ec
"Millisecond" doesn't have a hyphen. New sentence, new line. PostScript
...
output improvements. Bump date for previous.
2006-10-14 07:39:40 +00:00
peter
dd191f37f3
Merge the peter-altq branch.
...
(sync with KAME & add support for using ALTQ with pf(4)).
2006-10-12 19:59:07 +00:00
christos
e02941da8f
Coverity CID 2714: Fix reversed test (from Arnaud Lacombe)
2006-09-29 18:40:57 +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
jmmv
582b13f281
Fix typo: inteface -> interface.
2006-03-08 22:47:40 +00:00
peter
f1843b15c3
- add -D to usage
...
- use getprogname()
- sort options (usage, synopsis and description)
- add `Ar conf_file' to -f option (description)
From Kouichirou Hiratsuka in PR/26532.
2005-06-17 12:02:00 +00:00
he
7cc15c3097
Initialize various local variables (clinfo, fltrinfo) to appease
...
-Wuninitialized. Found while compiling for sun2.
Reviewed by lukem.
2005-06-07 13:39:37 +00:00
kleink
bcbb5c6578
Include <sys/time.h> for struct timeval.
2005-05-20 18:01:46 +00:00
lukem
7157011597
Only compile in IPv6 support if ${USE_INET6} != "no"
...
MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
2005-01-10 02:58:58 +00:00
dsl
238960af7e
Add (unsigned char) cast to ctype function
2004-10-29 19:51:36 +00:00
lukem
b817247988
Use MKPRIVATELIB=yes instead of providing an empty libinstall:: target and
...
setting NOLINT, NOPIC, NOPROFILE (etc)
2004-05-23 02:24:50 +00:00
lukem
931c212f78
Now that <math.h> #defines INFINITY as HUGE_VALF (the float version)
...
(per C99 7.12 #4 ), we can't define it as HUGE_VAL (the double version).
Instead, just use HUGE_VAL directly.
2003-10-26 08:08:06 +00:00
wiz
7fa3ef5ac1
Quote question mark.
2003-06-27 22:56:37 +00:00
itojun
682aab7791
sscanf overrun
2003-05-17 14:54:53 +00:00
perry
225230174b
Spelling errors (some from Igor Sobrado, PR misc/19909)
...
XXX this needs to be fed back to the altq maintainers, but I don't
know who they are.
XXX This man page needs a lot of cleanup.
2003-03-31 17:21:41 +00:00
wiz
83de4abed2
Use "its" instead of "it's" where appropriate.
...
From Soren Jacobsen in PR 20730.
2003-03-15 23:48:27 +00:00
wiz
b7e50f132b
Make '?' work in interactive mode. Fixes PR bin/19949 by Christian Biere.
2003-02-01 17:13:14 +00:00
wiz
7bd6fd354d
unknown, not unkown. Noted by mjl.
2003-01-28 22:19:22 +00:00
christos
4a51bd3d7b
update for struct renaming; noticed by David Laight.
2003-01-06 15:23:11 +00:00
lukem
c52b93f508
minor makefile delint
2002-09-18 13:31:52 +00:00
itojun
2237adde2a
use HUGE_VAL defined in <math.h> instead of 1e500 for positive infinity.
...
gcc -pedantic audit by deraadt@openbsd.org
2002-09-08 09:28:23 +00:00
lukem
ed401558f2
Implement MKDYNAMICROOT, which currently defaults to "no", but will
...
be changed in the future to "yes".
If MKDYNAMICROOT == "no", there is no change from existing behaviour
of a static /bin and /sbin (and a few programs in elsewhere).
If MKDYNAMICROOT == "yes", the following changes occur:
in <bsd.own.mk>:
SHLIBDIR?= /lib
SHLINKDIR?= /lib
in various Makefiles, the following entry is DISABLED.
LDSTATIC?=-static
This results in all programs (except those "standalone" programs built
in sys/arch/*/stand) are linked dynamically, the shared linker is moved
from /usr/libexec to /lib (with a compat symlink), and the shared
libraries used by /bin and /sbin programs are moved from /usr/lib to
/lib (with compat symlinks).
2002-08-27 14:46:11 +00:00
itojun
53ae45711d
fail if the default class is larger than the ctl class.
...
report by Paul Civati <paul@xciv.org>
2002-05-31 06:53:48 +00:00