diff options
author | Damien Miller <djm@mindrot.org> | 2003-05-19 00:13:38 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-05-19 00:13:38 +1000 |
commit | 317412502b900ddecdafdfa171da99271846478b (patch) | |
tree | 2e04f618288cdf0c16a98b675b28b8287a15a0c6 /openbsd-compat/port-irix.c | |
parent | e323df6c4851b04386e747a009474f469fe97137 (diff) |
- (djm) Big KNF on openbsd-compat/
Diffstat (limited to 'openbsd-compat/port-irix.c')
-rw-r--r-- | openbsd-compat/port-irix.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/openbsd-compat/port-irix.c b/openbsd-compat/port-irix.c index a63ec429a..1b212980d 100644 --- a/openbsd-compat/port-irix.c +++ b/openbsd-compat/port-irix.c | |||
@@ -1,15 +1,19 @@ | |||
1 | /* XXX - BSD license here */ | ||
2 | |||
1 | #include "includes.h" | 3 | #include "includes.h" |
2 | 4 | ||
3 | #if defined(WITH_IRIX_PROJECT) || defined(WITH_IRIX_JOBS) || defined(WITH_IRIX_ARRAY) | 5 | #if defined(WITH_IRIX_PROJECT) || \ |
6 | defined(WITH_IRIX_JOBS) || \ | ||
7 | defined(WITH_IRIX_ARRAY) | ||
4 | 8 | ||
5 | #ifdef WITH_IRIX_PROJECT | 9 | #ifdef WITH_IRIX_PROJECT |
6 | #include <proj.h> | 10 | # include <proj.h> |
7 | #endif /* WITH_IRIX_PROJECT */ | 11 | #endif /* WITH_IRIX_PROJECT */ |
8 | #ifdef WITH_IRIX_JOBS | 12 | #ifdef WITH_IRIX_JOBS |
9 | #include <sys/resource.h> | 13 | # include <sys/resource.h> |
10 | #endif | 14 | #endif |
11 | #ifdef WITH_IRIX_AUDIT | 15 | #ifdef WITH_IRIX_AUDIT |
12 | #include <sat.h> | 16 | # include <sat.h> |
13 | #endif /* WITH_IRIX_AUDIT */ | 17 | #endif /* WITH_IRIX_AUDIT */ |
14 | 18 | ||
15 | void | 19 | void |
@@ -17,14 +21,12 @@ irix_setusercontext(struct passwd *pw) | |||
17 | { | 21 | { |
18 | #ifdef WITH_IRIX_PROJECT | 22 | #ifdef WITH_IRIX_PROJECT |
19 | prid_t projid; | 23 | prid_t projid; |
20 | #endif /* WITH_IRIX_PROJECT */ | 24 | #endif |
21 | #ifdef WITH_IRIX_JOBS | 25 | #ifdef WITH_IRIX_JOBS |
22 | jid_t jid = 0; | 26 | jid_t jid = 0; |
23 | #else | 27 | #elif defined(WITH_IRIX_ARRAY) |
24 | # ifdef WITH_IRIX_ARRAY | ||
25 | int jid = 0; | 28 | int jid = 0; |
26 | # endif /* WITH_IRIX_ARRAY */ | 29 | #endif |
27 | #endif /* WITH_IRIX_JOBS */ | ||
28 | 30 | ||
29 | #ifdef WITH_IRIX_JOBS | 31 | #ifdef WITH_IRIX_JOBS |
30 | jid = jlimit_startjob(pw->pw_name, pw->pw_uid, "interactive"); | 32 | jid = jlimit_startjob(pw->pw_name, pw->pw_uid, "interactive"); |