Dimitry Andric
136fb141c6
Unfortunately, clang gives warnings about sendmail code that cannot be
...
turned off yet. Since this is contrib code, and we don't really care
about the warnings, just turn make them non-fatal for now.
MFC after: 1 week
2011-12-19 13:35:44 +00:00
Dimitry Andric
b134560923
Forgot to add usr.sbin/sade/label.c in the previous commit.
...
MFC after: 1 week
2011-12-18 01:14:38 +00:00
Dimitry Andric
7b910e702a
In usr.sbin/sade/install.c and usr.sbin/sade/label.c, fix a few warnings
...
about format strings not being literals.
MFC after: 1 week
2011-12-18 01:13:21 +00:00
Dimitry Andric
4c14050c9d
In usr.sbin/sa/db.c, avoid warnings about assigning two const char
...
arrays to non-const void pointers, by casting away const explicitly.
MFC after: 1 week
2011-12-18 01:08:25 +00:00
Dimitry Andric
0af4e80ae5
In usr.sbin/rpc.ypupdated/yp_dbupdate.c, since intmax_t is signed, just
...
like time_t, better use %jd instead of %ju. Strangely enough, neither
gcc, clang nor gcc 4.6 warn about this discrepancy...
MFC after: 1 week
2011-12-18 00:55:46 +00:00
Dimitry Andric
ae1d153674
In usr.sbin/rpc.ypupdated/yp_dbupdate.c, include stdint.h, so intmax_t
...
is known, otherwise it won't build.
Pointy hat to: dim
MFC after: 1 week
2011-12-18 00:44:59 +00:00
Dimitry Andric
7027737f5a
In usr.sbin/rpc.ypupdated/yp_dbupdate.c, use the appropriate printf
...
length modifier for time_t (after casting it to intmax_t).
MFC after: 1 week
2011-12-18 00:40:30 +00:00
Dimitry Andric
2214781145
In usr.sbin/route6d/route6d.c, use the correct printf length modifier
...
for an ssize_t.
MFC after: 1 week
2011-12-18 00:03:03 +00:00
Dimitry Andric
5893527d84
In usr.sbin/pw/pw_user.c, use the correct printf length modifier for a
...
ptrdiff_t.
MFC after: 1 week
2011-12-17 23:46:47 +00:00
Dimitry Andric
e2d0cd59c3
In usr.sbin/pmccontrol/pmccontrol.c, fix a few warnings about format
...
strings not being literals.
MFC after: 1 week
2011-12-17 23:39:13 +00:00
Dimitry Andric
9a3df8edd1
In usr.sbin/pkg_install/updating/main.c, use the size of the destination
...
buffer as size argument to strlcpy(), not the length of the source.
MFC after: 1 week
2011-12-17 23:35:46 +00:00
Dimitry Andric
b41349deef
Use NO_WCAST_ALIGN for usr.sbin/ndiscvt; because this is only built for
...
x86, any alignment warnings can be safely ignored. Define YY_NO_INPUT
in usr.sbin/ndiscvt/inf-token.l, so no unused lex functions are defined.
MFC after: 1 week
2011-12-17 22:16:27 +00:00
Dimitry Andric
97fbdc11ea
In usr.sbin/lpr/lpd/printjob.c, use the correct printf length modifiers
...
for off_t (aka int64_t).
MFC after: 1 week
2011-12-17 22:05:28 +00:00
Dimitry Andric
7ae1a27825
In usr.sbin/lpr/filters/lpf.c, use a less obtuse way of clearing the
...
buffer, that also avoids warnings.
MFC after: 1 week
2011-12-17 21:37:21 +00:00
Dimitry Andric
740885817c
In usr.sbin/keyserv, fix some implicit enum conversions, and use the
...
correct printf length modifiers for uid_t.
MFC after: 1 week
2011-12-17 20:53:06 +00:00
Dimitry Andric
cfed15e6c5
In usr.sbin/iostat/iostat.c, use printf format specifiers from
...
inttypes.h for u_int64_t's. While here, sort #include directives.
MFC after: 1 week
2011-12-17 20:25:23 +00:00
Dimitry Andric
928e797dc0
In usr.sbin/i2c/i2c.c, fix a few warnings about format strings not being
...
literals.
MFC after: 1 week
2011-12-17 20:12:17 +00:00
Dimitry Andric
e0c518be94
In usr.sbin/ctm/ctm_dequeue/ctm_dequeue.c, cast a printf field width
...
parameter to int.
MFC after: 1 week
2011-12-17 20:07:42 +00:00
Dimitry Andric
5207dac8ba
Use NO_WCAST_ALIGN for usr.sbin/cpucontrol; because this is only built
...
for x86, any alignment warnings can be safely ignored.
MFC after: 1 week
2011-12-17 19:58:48 +00:00
Dimitry Andric
1605515d77
In usr.sbin/bsnmpd/modules/snmp_wlan/wlan_snmp.h, use the correct
...
enumeration types for the mesh_peering and mesh_forwarding members of
struct wlan_iface, to fix enum conversion warnings.
MFC after: 1 week
2011-12-17 19:53:08 +00:00
Dimitry Andric
14fa6dc403
Use NO_WCAST_ALIGN for usr.sbin/boot0cfg; because this is only built for
...
x86, any alignment warnings can be safely ignored.
MFC after: 1 week
2011-12-17 19:33:26 +00:00
Dimitry Andric
98e0f284ba
In usr.sbin/bluetooth/sdpd/server.c, don't use the size of a pointer as
...
the length argument to memset, but the size of the object pointed to.
MFC after: 1 week
2011-12-17 19:26:03 +00:00
Ed Schouten
4d9a3537ff
Add missing static and const keywords to kbdcontrol.
...
None of the symbols provided by kbdcontrol.c are used by other source
files of this binary. Slightly reduce the binary size and make much more
symbols read-only by adding proper static and const keywords.
2011-12-12 12:33:38 +00:00
Fabien Thomas
96ff3b75d4
Add VIA microde update support to cpuctl(4) and cpucontrol(8).
...
Support have been tested with X2 CPU and QuadCore CPU.
MFC after: 1 month
2011-12-12 12:30:44 +00:00
Ed Schouten
3be02c20ca
Add static keywords to vidcontrol(1).
...
While there, remove the false optimisation of the colors array. It seems
that changing it to an array of pointers instead of a 16x16 array does
not cause any increase in binary size at all.
2011-12-11 21:02:33 +00:00
Ed Schouten
e120624d32
Add missing static keyword.
...
All global variables and functions in powerd are marked static, except
this array of strings. Add the keyword, for consistency.
2011-12-11 19:22:42 +00:00
Ed Schouten
516c8ed9dd
Replace char copyright[] by static const char copyright[].
...
It seems the latter is used throughout the tree.
2011-12-10 18:11:06 +00:00
John Baldwin
1b202316ec
Use the correct volume identifier field when parsing MR_EVT_ARG_LD_STRIP
...
arguments.
MFC after: 2 weeks
2011-12-05 15:11:35 +00:00
Nathan Whitehorn
6081c922d2
Prevent user astonishment by providing the shell option at the end, after
...
any installer-provided configuration files have been copied. This allows
users to edit their fstab, if desired, and to see what the installer has
placed in rc.conf.
Requested by: phk
MFC after: 1 day
2011-12-02 02:05:26 +00:00
Ken Smith
9cd86fa6ba
Add a screen that asks if the user would like to enable crash dumps,
...
giving them a very brief description of the trade-offs. Whether the
user opts in or out add an entry to what will become /etc/rc.conf
explaining what dumpdev is and how to turn on/off crash dumps. The folks
who handle interacting with users submitting PRs have asked for this.
Reviewed by: nwhitehorn
MFC after: 1 day
2011-12-02 00:38:47 +00:00
Max Khon
fcc050e759
Sync xdialog_menu() implementation with sade.
2011-12-01 09:02:57 +00:00
Max Khon
0f94127a5b
Fix dialog autosizing: dlg_count_columns() does not handle NL characters.
2011-12-01 09:01:51 +00:00
Max Khon
d28e8f62e8
Generate ${NORMAL_CTFCONVERT} invocation without '@' modifier:
...
- ${NORMAL_CC} is also invoked without '@'
- Userland CTF support was changed previously to echo ctfconvert invocations too
2011-11-30 13:33:09 +00:00
Doug Barton
878c6432be
If using DISTDIR we need to be sure to create a ${DESTDIR}/var/db/zoneinfo
...
PR: bin/162891
Submitted by: Helge Oldach <src-mergemaster-nov11@oldach.net>
2011-11-29 08:22:12 +00:00
Xin LI
6dc3afae75
In build_volume(), check if arrays is allocated before traversing its
...
items. While parsing the arrays input, it's possible that we reach the
error path before initializing the 'arrays' pointer, which in turn leads
to a NULL deference.
Submitted by: Garrett Cooper
MFC after: 1 week
2011-11-29 08:16:14 +00:00
Jung-uk Kim
3f0275a033
Merge ACPICA 20111123.
2011-11-28 23:36:48 +00:00
Kevin Lo
c725e3ef7a
Plug memory leaks and fix open(2) error check.
...
Reviewed by: nwhitehorn
MFC after: 3 days
2011-11-28 05:34:16 +00:00
Warren Block
df799cbad3
Point out that @reboot runs at every cron startup, not just system
...
startup.
Discussed on: hackers@
Approved by: gjb (mentor)
MFC after: 1 week
2011-11-25 17:41:12 +00:00
Max Khon
320baf06b8
Remove DEBUG_FLAGS.
2011-11-25 07:10:59 +00:00
Max Khon
8396c7de45
calloc +1 DIALOG_LISTITEM to prevent possible wild pointer access
...
in dlg_default_listitem().
2011-11-24 18:45:23 +00:00
Max Khon
166a0ada4e
Port to new libdialog.
2011-11-24 18:37:16 +00:00
Max Khon
246864a52b
Disk selection dialog is now a normal menu, not a checkboxed menu:
...
checkboxed menu is confusing and also can not be implemented
in new libdialog.
2011-11-24 15:47:01 +00:00
Max Khon
3567b2c445
Port to new libdialog.
2011-11-24 13:24:06 +00:00
Max Khon
9265b03823
Remove unused code.
2011-11-24 10:08:22 +00:00
Max Khon
23c64763a9
Remove unused code.
2011-11-24 08:56:24 +00:00
Max Khon
2dc3da8c3f
Remove unused functions.
2011-11-23 19:11:03 +00:00
Max Khon
66b007568a
- Remove unused old libdialog includes
...
- Remove unused functions
2011-11-23 19:06:30 +00:00
Ed Maste
f1e7af36c0
Avoid double free creating a new RAID with invalid command line arguments.
...
Submitted by: Xin Huang <xhuang sandvine com>
Reviewed by: rstone@
MFC after: 1 week
2011-11-23 17:02:27 +00:00
Kevin Lo
de028133d4
Plug fd leaks
2011-11-23 10:27:18 +00:00
David E. O'Brien
d6b6324f02
KNF
2011-11-15 06:50:10 +00:00