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
This commit is contained in:
Xin LI 2005-01-04 02:24:01 +00:00
parent bac209a543
commit 9e3daa8dcf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139655

View File

@ -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 */