summaryrefslogtreecommitdiff
path: root/ident.c
diff options
context:
space:
mode:
authorLuiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>2007-04-15 18:40:31 -0300
committerJunio C Hamano <junkio@cox.net>2007-04-15 15:59:09 -0700
commit0b952a98f1dafc61e966237947e7836814fb74f5 (patch)
tree6f1ebc4985703d7eca5caad2379a8d935291d03b /ident.c
parentedb4fd79ec34254fc4a1c35e8834df4c92cb3bfd (diff)
downloadgit-0b952a98f1dafc61e966237947e7836814fb74f5.tar.gz
ident.c: Use const qualifier for 'struct passwd' parameters
Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'ident.c')
-rw-r--r--ident.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ident.c b/ident.c
index bb03bddd34..b557ecd539 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