Fix one kind of style(9) bug and a typo in a comment.
Tested with: md5(1)
This commit is contained in:
parent
28db227dc2
commit
f855462a24
@ -269,7 +269,7 @@ setclasscontext(const char *classname, unsigned int flags)
|
||||
|
||||
|
||||
/*
|
||||
* Private functionw which takes care of processing
|
||||
* Private function which takes care of processing
|
||||
*/
|
||||
|
||||
static mode_t
|
||||
@ -334,18 +334,18 @@ setusercontext(login_cap_t *lc, const struct passwd *pwd, uid_t uid, unsigned in
|
||||
if (flags & LOGIN_SETPRIORITY) {
|
||||
p = login_getcapnum(lc, "priority", LOGIN_DEFPRI, LOGIN_DEFPRI);
|
||||
|
||||
if(p > PRIO_MAX) {
|
||||
if (p > PRIO_MAX) {
|
||||
rtp.type = RTP_PRIO_IDLE;
|
||||
rtp.prio = p - PRIO_MAX - 1;
|
||||
p = (rtp.prio > RTP_PRIO_MAX) ? 31 : p;
|
||||
if(rtprio(RTP_SET, 0, &rtp))
|
||||
if (rtprio(RTP_SET, 0, &rtp))
|
||||
syslog(LOG_WARNING, "rtprio '%s' (%s): %m",
|
||||
pwd->pw_name, lc ? lc->lc_class : LOGIN_DEFCLASS);
|
||||
} else if(p < PRIO_MIN) {
|
||||
} else if (p < PRIO_MIN) {
|
||||
rtp.type = RTP_PRIO_REALTIME;
|
||||
rtp.prio = abs(p - PRIO_MIN + RTP_PRIO_MAX);
|
||||
p = (rtp.prio > RTP_PRIO_MAX) ? 1 : p;
|
||||
if(rtprio(RTP_SET, 0, &rtp))
|
||||
if (rtprio(RTP_SET, 0, &rtp))
|
||||
syslog(LOG_WARNING, "rtprio '%s' (%s): %m",
|
||||
pwd->pw_name, lc ? lc->lc_class : LOGIN_DEFCLASS);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user