Commit Graph

87 Commits

Author SHA1 Message Date
fox
47c90ff9dc usr.sbin/altq: Suppress -Werror=stringop-truncation error.
Add GCC_NO_STRINGOP_TRUNCATION to quip_client.c to prevent build failure.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@
2020-02-08 01:01:31 +00:00
fox
77e17afddc usr.sbin/altq: Revert the strlcpy(3) change since this changes expected behavior from strncpy(3).
Reviewed by: kamil@
2020-02-07 21:53:20 +00:00
fox
c308ca874b usr.sbin/altq: Fix -Wstringop-truncation warning.
Looks like the original intention was to truncate the string at len.

Replace strncpy(3) with strlcpy(3).

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@
2020-02-07 20:13:26 +00:00
mrg
de11d87641 introduce some common variables for use in GCC warning disables:
GCC_NO_FORMAT_TRUNCATION    -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION  -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW    -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE   -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints.  many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
2019-10-13 07:28:04 +00:00
msaitoh
03e9d50adf Fix typo (s/supress/suppress/). 2019-07-11 03:49:51 +00:00
sevan
48c836ccbc bump date 2019-04-09 19:10:21 +00:00
sevan
009f837b28 Drop Pp before Bl 2019-04-09 18:22:33 +00:00
sevan
d90cc3e3f6 New sentence, new line 2019-04-09 18:21:15 +00:00
wiz
01869ca4d2 Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
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