aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYaroslav Tykhiy <ytykhiy@gmail.com>2007-05-01 18:50:33 +0000
committerYaroslav Tykhiy <ytykhiy@gmail.com>2007-05-01 18:50:33 +0000
commitf855462a248b2753e42b0ec22141a5b80f37c036 (patch)
tree1ade8e6f287524ecbddd39d87ecf9dc8e9334297 /lib
parent28db227dc2cdf48d52e8abc1050365cfa0d7c508 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libutil/login_class.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libutil/login_class.c b/lib/libutil/login_class.c
index 30716056fc89..39f114f2d49f 100644
--- a/lib/libutil/login_class.c
+++ b/lib/libutil/login_class.c
@@ -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 {