From: Luiz Fernando N. Capitulino Date: Sun, 15 Apr 2007 21:40:31 +0000 (-0300) Subject: ident.c: Use const qualifier for 'struct passwd' parameters X-Git-Tag: v1.5.2-rc0~54 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0b952a98f1dafc61e966237947e7836814fb74f5;p=git.git ident.c: Use const qualifier for 'struct passwd' parameters Signed-off-by: Luiz Fernando N. Capitulino Signed-off-by: Junio C Hamano --- diff --git a/ident.c b/ident.c index bb03bddd3..b557ecd53 100644 --- a/ident.c +++ b/ident.c @@ -9,7 +9,7 @@ static char git_default_date[50]; -static void copy_gecos(struct passwd *w, char *name, int sz) +static void copy_gecos(const struct passwd *w, char *name, int sz) { char *src, *dst; int len, nlen; @@ -43,7 +43,7 @@ static void copy_gecos(struct passwd *w, char *name, int sz) } -static void copy_email(struct passwd *pw) +static void copy_email(const struct passwd *pw) { /* * Make up a fake email address