aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2014-07-16 15:03:11 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2014-07-16 15:03:11 -0500
commita94a9740d545817294cc431180db0f22fc923b13 (patch)
tree9c7292c637c59b34883b790913de87856d30fd97 /src/rc
parent8b8edc29705b843988b97242942a409241c182eb (diff)
checkpath: style fixes
Diffstat (limited to 'src/rc')
-rw-r--r--src/rc/checkpath.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/rc/checkpath.c b/src/rc/checkpath.c
index b0384bdb..ecd845f6 100644
--- a/src/rc/checkpath.c
+++ b/src/rc/checkpath.c
@@ -59,9 +59,8 @@ typedef enum {
extern const char *applet;
-static int
-do_check(char *path, uid_t uid, gid_t gid, mode_t mode, inode_t type,
- bool trunc, bool chowner, bool selinux_on)
+static int do_check(char *path, uid_t uid, gid_t gid, mode_t mode,
+ inode_t type, bool trunc, bool chowner, bool selinux_on)
{
struct stat st;
int fd, flags;
@@ -157,8 +156,8 @@ do_check(char *path, uid_t uid, gid_t gid, mode_t mode, inode_t type,
return 0;
}
-static int
-parse_owner(struct passwd **user, struct group **group, const char *owner)
+static int parse_owner(struct passwd **user, struct group **group,
+ const char *owner)
{
char *u = xstrdup (owner);
char *g = strchr (u, ':');
@@ -217,8 +216,7 @@ static const char * const longopts_help[] = {
};
#include "_usage.c"
-int
-checkpath(int argc, char **argv)
+int checkpath(int argc, char **argv)
{
int opt;
uid_t uid = geteuid();