summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>2007-04-15 21:40:31 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-04-15 22:59:09 (GMT)
commit0b952a98f1dafc61e966237947e7836814fb74f5 (patch)
tree6f1ebc4985703d7eca5caad2379a8d935291d03b
parentedb4fd79ec34254fc4a1c35e8834df4c92cb3bfd (diff)
downloadgit-0b952a98f1dafc61e966237947e7836814fb74f5.zip
git-0b952a98f1dafc61e966237947e7836814fb74f5.tar.gz
git-0b952a98f1dafc61e966237947e7836814fb74f5.tar.bz2
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>
-rw-r--r--ident.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ident.c b/ident.c
index bb03bdd..b557ecd 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