diff options
Diffstat (limited to 'libmu_scm/mu_util.c')
-rw-r--r-- | libmu_scm/mu_util.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libmu_scm/mu_util.c b/libmu_scm/mu_util.c index bdf3aca78..8f3b2323a 100644 --- a/libmu_scm/mu_util.c +++ b/libmu_scm/mu_util.c @@ -20,8 +20,8 @@ #include "mu_scm.h" SCM_DEFINE_PUBLIC (scm_mu_getpwuid, "mu-getpwuid", 1, 0, 0, - (SCM USER), -"Look up an entry in the user database. USER can be an integer,\n" + (SCM user), +"Look up an entry in the user database. @var{User} can be an integer,\n" "or a string, giving the behaviour of @code{mu_get_auth_by_uid} or\n" "@code{mu_get_auth_by_name} respectively.\n" "\n" @@ -39,16 +39,16 @@ SCM_DEFINE_PUBLIC (scm_mu_getpwuid, "mu-getpwuid", 1, 0, 0, &handle, NULL, NULL); - if (scm_is_integer (USER)) + if (scm_is_integer (user)) { - entry = mu_get_auth_by_uid (scm_to_int32 (USER)); + entry = mu_get_auth_by_uid (scm_to_int (user)); } else { char *s; - SCM_VALIDATE_STRING (1, USER); - s = scm_to_locale_string (USER); + SCM_VALIDATE_STRING (1, user); + s = scm_to_locale_string (user); entry = mu_get_auth_by_name (s); free (s); } |