From 80a30dfe6f3ae27f235cc3e15414a4e49de941f8 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sat, 11 Apr 2009 18:37:59 +0000 Subject: [PATCH] * src/gpasswd.c: Fix the usage of the unused macro. --- ChangeLog | 4 ++++ src/gpasswd.c | 24 ++++++++++++------------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index 72c846c3..119a60ee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-04-11 Nicolas François + + * src/gpasswd.c: Fix the usage of the unused macro. + 2009-04-11 Nicolas François * lib/prototypes.h, libmisc/age.c, src/expiry.c, src/login.c: A diff --git a/src/gpasswd.c b/src/gpasswd.c index 18fbb47c..fd1d8fc1 100644 --- a/src/gpasswd.c +++ b/src/gpasswd.c @@ -111,16 +111,16 @@ static void update_group (struct group *gr); static void change_passwd (struct group *gr); #endif static void log_gpasswd_failure (const char *suffix); -static void log_gpasswd_failure_system (void *unused(arg)); -static void log_gpasswd_failure_group (void *unused(arg)); +static void log_gpasswd_failure_system (unused void *arg); +static void log_gpasswd_failure_group (unused void *arg); #ifdef SHADOWGRP -static void log_gpasswd_failure_gshadow (void *unused(arg)); +static void log_gpasswd_failure_gshadow (unused void *arg); #endif static void log_gpasswd_success (const char *suffix); -static void log_gpasswd_success_system (void *unused(arg)); -static void log_gpasswd_success_group (void *unused(arg)); +static void log_gpasswd_success_system (unused void *arg); +static void log_gpasswd_success_group (unused void *arg); #ifdef SHADOWGRP -static void log_gpasswd_success_gshadow (void *unused(arg)); +static void log_gpasswd_success_gshadow (unused void *arg); #endif /* @@ -499,12 +499,12 @@ static void log_gpasswd_failure (const char *suffix) } } -static void log_gpasswd_failure_system (void *unused(arg)) +static void log_gpasswd_failure_system (unused void *arg) { log_gpasswd_failure (""); } -static void log_gpasswd_failure_group (void *unused(arg)) +static void log_gpasswd_failure_group (unused void *arg) { char buf[1024]; snprintf (buf, 1023, " in %s", gr_dbname ()); @@ -513,7 +513,7 @@ static void log_gpasswd_failure_group (void *unused(arg)) } #ifdef SHADOWGRP -static void log_gpasswd_failure_gshadow (void *unused(arg)) +static void log_gpasswd_failure_gshadow (unused void *arg) { char buf[1024]; snprintf (buf, 1023, " in %s", sgr_dbname ()); @@ -633,12 +633,12 @@ static void log_gpasswd_success (const char *suffix) } } -static void log_gpasswd_success_system (void *unused(arg)) +static void log_gpasswd_success_system (unused void *arg) { log_gpasswd_success (""); } -static void log_gpasswd_success_group (void *unused(arg)) +static void log_gpasswd_success_group (unused void *arg) { char buf[1024]; snprintf (buf, 1023, " in %s", gr_dbname ()); @@ -647,7 +647,7 @@ static void log_gpasswd_success_group (void *unused(arg)) } #ifdef SHADOWGRP -static void log_gpasswd_success_gshadow (void *unused(arg)) +static void log_gpasswd_success_gshadow (unused void *arg) { char buf[1024]; snprintf (buf, 1023, " in %s", sgr_dbname ());