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>
Luiz Fernando N. Capitulino committed
Apr 15, 2007 at 18:40 UTC
0b952a98f1dafc61e966237947e7836814fb74f5
1 file changed
+2
-2
ident.c
+2
-2
@@ -9,7 +9,7 @@
9
10
static char git_default_date[50];
11
12
-static void copy_gecos(struct passwd *w, char *name, int sz)
12
+static void copy_gecos(const struct passwd *w, char *name, int sz)
13
{
14
char *src, *dst;
15
int len, nlen;
@@ -43,7 +43,7 @@ static void copy_gecos(struct passwd *w, char *name, int sz)
43
44
}
45
46
-static void copy_email(struct passwd *pw)
46
+static void copy_email(const struct passwd *pw)
47
{
48
/*
49
* Make up a fake email address