mirror of
https://github.com/git/git
synced 2024-09-20 17:01:35 +00:00
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>
This commit is contained in:
parent
edb4fd79ec
commit
0b952a98f1
4
ident.c
4
ident.c
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
static char git_default_date[50];
|
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;
|
char *src, *dst;
|
||||||
int len, nlen;
|
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
|
* Make up a fake email address
|
||||||
|
|
Loading…
Reference in a new issue