masqmail

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 diff
     1.1 --- a/src/permissions.c	Wed Sep 14 12:20:40 2011 +0200
     1.2 +++ b/src/permissions.c	Thu Sep 22 15:07:40 2011 +0200
     1.3 @@ -53,7 +53,7 @@
     1.4  is_privileged_user(uid_t uid)
     1.5  {
     1.6  	/* uncomment these lines if you need the `uucp' group to be trusted too
     1.7 -	struct group* grent = getgrnam("uucp");
     1.8 +	struct group *grent = getgrnam("uucp");
     1.9  
    1.10  	if (is_ingroup(uid, grent->gr_gid)) {
    1.11  		return TRUE;
    1.12 @@ -64,7 +64,7 @@
    1.13  }
    1.14  
    1.15  void
    1.16 -set_euidgid(gint uid, gint gid, uid_t * old_uid, gid_t * old_gid)
    1.17 +set_euidgid(gint uid, gint gid, uid_t *old_uid, gid_t *old_gid)
    1.18  {
    1.19  	if (old_uid)
    1.20  		*old_uid = geteuid();
    1.21 @@ -84,7 +84,7 @@
    1.22  }
    1.23  
    1.24  void
    1.25 -set_identity(uid_t old_uid, gchar * task_name)
    1.26 +set_identity(uid_t old_uid, gchar *task_name)
    1.27  {
    1.28  	if (!conf.run_as_user) {
    1.29  		if (!is_privileged_user(old_uid)) {