Eitan Adler
19e1bf2997
- document the -l option to usermod
...
PR: docs/161588
Submitted by: "Luchesar V. ILIEV" <luchesar.iliev@gmail.com>
Approved by: gjb
MFC after: 1 week
2011-12-22 03:36:54 +00:00
Eitan Adler
5bf8645b8d
- Fix style(9) bug I introduced in the last commit
...
Approved by: jhb
2011-12-21 20:47:24 +00:00
Eitan Adler
520374b5aa
- Remove extraneous null ptr deref checks
...
- Fix memory leak
Submitted by: Slono Slono <slonoman2011@yandex.ru>
Approved by: jhb
MFC after: 1 week
2011-12-21 20:27:41 +00:00
John Baldwin
f9a0145857
Allow boot0cfg to force a PXE boot via boot0 on the next boot.
...
- Fix boot0 to check for PXE when using the pre-set setting for the
preferred slice.
- Update boot0cfg to use slice 6 to select PXE. Accept a 'pxe' argument
instead of a number for the 's' option as a way to select PXE as well.
Submitted by: Andrew Boyer aboyer averesystems
MFC after: 2 weeks
2011-12-20 15:19:29 +00:00
Ed Schouten
55a1bde99c
Small cleanups to panic() prototype.
...
- Let panic() use _Noreturn and __printflike() instead of GCC-specific
attributes.
- Remove prototype from ffs_subr.c and let it include ffs_extern.h.
- Forward declare struct inode to make ffs_extern.h not depend on it.
2011-12-20 12:34:17 +00:00
Dimitry Andric
8a0e4ea185
In usr.sbin/yp_mkdb/yp_mkdb.c, cast some printf field width parameters
...
to int, cast time_t to intmax_t, and use the corresponding printf length
modifier.
MFC after: 1 week
2011-12-19 20:44:44 +00:00
Dimitry Andric
5eeae9a725
In usr.sbin/uhsoctl/uhsoctl.c, fix a few warnings about format strings
...
not being literals.
MFC after: 1 week
2011-12-19 20:38:26 +00:00
Dimitry Andric
5c67a2799c
Fix r228719; when you use intmax_t, you need stdint.h.
...
Pointy hat to: dim
MFC after: 1 week
2011-12-19 20:33:53 +00:00
Dimitry Andric
655353a78c
Some people pointed out long is 32-bit on some arches, while time_t is
...
64-bit, so better cast time_t to intmax_t, and use the appropriate
printf format strings.
MFC after: 1 week
2011-12-19 20:29:50 +00:00
Dimitry Andric
ad5b59d82c
In usr.sbin/timed, fix several issues with printf formats:
...
- Cast time_t's to long, and print them with %ld.
- Print ptrdiff_t's with %td.
- Print ssize_t's and size_t's with %zd and %zu.
- Print int32_t's with %d.
Also, replace some int variables with the more appropriate size_t.
MFC after: 1 week
2011-12-19 18:08:31 +00:00
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