summaryrefslogtreecommitdiffstats
path: root/usr.sbin/newsyslog
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2005-01-04 02:24:01 +0000
committerdelphij <delphij@FreeBSD.org>2005-01-04 02:24:01 +0000
commit985415fefc94c4c0cdd2234db820330801ecde00 (patch)
tree675bfcbafda3cd1480b3674350ad4e690f63aee6 /usr.sbin/newsyslog
parenta38da1feabccbc7f27259cd75f5d11928a5d1846 (diff)
downloadFreeBSD-src-985415fefc94c4c0cdd2234db820330801ecde00.zip
FreeBSD-src-985415fefc94c4c0cdd2234db820330801ecde00.tar.gz
Because the `permission' field in conf_entry is intended to be used as
parameter 2 in chmod(2), which is a mode_t (and in turn a __uint_16_t), it's more likely that it should be defined as an unsigned variable. This commit should make newsyslog WARNS=6 clean, but don't bump the knob until I have a universe build. MFC After: 1 month
Diffstat (limited to 'usr.sbin/newsyslog')
-rw-r--r--usr.sbin/newsyslog/newsyslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/newsyslog/newsyslog.c b/usr.sbin/newsyslog/newsyslog.c
index a91ed9f..9967e88 100644
--- a/usr.sbin/newsyslog/newsyslog.c
+++ b/usr.sbin/newsyslog/newsyslog.c
@@ -133,7 +133,7 @@ struct conf_entry {
int trsize; /* Size cutoff to trigger trimming the log */
int hours; /* Hours between log trimming */
struct ptime_data *trim_at; /* Specific time to do trimming */
- int permissions; /* File permissions on the log */
+ unsigned int permissions; /* File permissions on the log */
int flags; /* CE_COMPACT, CE_BZCOMPACT, CE_BINARY */
int sig; /* Signal to send */
int def_cfg; /* Using the <default> rule for this file */
OpenPOWER on IntegriCloud