dim
1ca71436d8
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
dim
6429d99436
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
dim
4b1ea42179
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
dim
b4db5ea758
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
dim
3785c803c7
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
dim
94c83b90f3
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
dim
8521853f9c
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
dim
0dd9212d5b
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
dim
45ec4ed058
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
dim
baf9f7519d
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
dim
7dcb1394db
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
dim
05e60339a1
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
dim
376711b828
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
dim
14cb3a31d3
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
dim
a48c9b9693
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
dim
77ba470f6c
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
dim
a86eaf3b29
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
dim
e166d57d96
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
dim
62646ab53e
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
dim
6932d3de69
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
27797657ef
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
fabient
936e212e29
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
787a58ca19
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
674bf2b68f
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
f559e163ab
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
jhb
d43195ec00
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
nwhitehorn
50bd4baccd
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
kensmith
98cd494e62
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
fjoe
e0bf9db8f3
Sync xdialog_menu() implementation with sade.
2011-12-01 09:02:57 +00:00
fjoe
0df8b7ddd2
Fix dialog autosizing: dlg_count_columns() does not handle NL characters.
2011-12-01 09:01:51 +00:00
fjoe
b1d2a50084
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
dougb
c8bad4ab57
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
delphij
b050d953ee
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
jkim
1bdf3ee8a8
Merge ACPICA 20111123.
2011-11-28 23:36:48 +00:00
kevlo
6473db59df
Plug memory leaks and fix open(2) error check.
...
Reviewed by: nwhitehorn
MFC after: 3 days
2011-11-28 05:34:16 +00:00
wblock
8483c39233
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
fjoe
825933c1d2
Remove DEBUG_FLAGS.
2011-11-25 07:10:59 +00:00
fjoe
8594dfe0c0
calloc +1 DIALOG_LISTITEM to prevent possible wild pointer access
...
in dlg_default_listitem().
2011-11-24 18:45:23 +00:00
fjoe
73353fa946
Port to new libdialog.
2011-11-24 18:37:16 +00:00
fjoe
785264a30f
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
fjoe
7e5bec7de1
Port to new libdialog.
2011-11-24 13:24:06 +00:00
fjoe
fc3882da85
Remove unused code.
2011-11-24 10:08:22 +00:00
fjoe
aea14a2706
Remove unused code.
2011-11-24 08:56:24 +00:00
fjoe
c95d65ea66
Remove unused functions.
2011-11-23 19:11:03 +00:00
fjoe
1b36cd1ee6
- Remove unused old libdialog includes
...
- Remove unused functions
2011-11-23 19:06:30 +00:00
emaste
d213dca17e
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
kevlo
2fca8765a2
Plug fd leaks
2011-11-23 10:27:18 +00:00
obrien
07a4da4c91
KNF
2011-11-15 06:50:10 +00:00
obrien
645c15928a
Improve the chances of matching an outputted string with the line of code.
2011-11-15 06:44:07 +00:00
eadler
6efa0e7f22
- fix duplicate "a a" in some comments
...
Submitted by: eadler
Approved by: simon
MFC after: 3 days
2011-11-13 17:06:33 +00:00