diff options
author | yar <yar@FreeBSD.org> | 2007-05-01 18:50:33 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2007-05-01 18:50:33 +0000 |
commit | 1008fb2feaa1d64ec29ef605483c449bd0e20965 (patch) | |
tree | 1ade8e6f287524ecbddd39d87ecf9dc8e9334297 /lib | |
parent | 6a4e53f39d1259ed0b5f3ee0a5d638596a322d4e (diff) | |
download | FreeBSD-src-1008fb2feaa1d64ec29ef605483c449bd0e20965.zip FreeBSD-src-1008fb2feaa1d64ec29ef605483c449bd0e20965.tar.gz |
Fix one kind of style(9) bug and a typo in a comment.
Tested with: md5(1)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libutil/login_class.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libutil/login_class.c b/lib/libutil/login_class.c index 3071605..39f114f 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 { |