diff src/permissions.c @ 366:41958685480d

Switched to `type *name' style Andrew Koenig's ``C Traps and Pitfalls'' (Ch.2.1) convinced me that it is best to go with the way C had been designed. The ``declaration reflects use'' concept conflicts with a ``type* name'' notation. Hence I switched.
author markus schnalke <meillo@marmaro.de>
date Thu, 22 Sep 2011 15:07:40 +0200
parents fc1c6425c024
children b27f66555ba8
line wrap: on
line diff
--- a/src/permissions.c	Wed Sep 14 12:20:40 2011 +0200
+++ b/src/permissions.c	Thu Sep 22 15:07:40 2011 +0200
@@ -53,7 +53,7 @@
 is_privileged_user(uid_t uid)
 {
 	/* uncomment these lines if you need the `uucp' group to be trusted too
-	struct group* grent = getgrnam("uucp");
+	struct group *grent = getgrnam("uucp");
 
 	if (is_ingroup(uid, grent->gr_gid)) {
 		return TRUE;
@@ -64,7 +64,7 @@
 }
 
 void
-set_euidgid(gint uid, gint gid, uid_t * old_uid, gid_t * old_gid)
+set_euidgid(gint uid, gint gid, uid_t *old_uid, gid_t *old_gid)
 {
 	if (old_uid)
 		*old_uid = geteuid();
@@ -84,7 +84,7 @@
 }
 
 void
-set_identity(uid_t old_uid, gchar * task_name)
+set_identity(uid_t old_uid, gchar *task_name)
 {
 	if (!conf.run_as_user) {
 		if (!is_privileged_user(old_uid)) {