projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edb4fd7
)
ident.c: Use const qualifier for 'struct passwd' parameters
author
Luiz Fernando N. Capitulino
<lcapitulino@mandriva.com.br>
Sun, 15 Apr 2007 21:40:31 +0000
(18:40 -0300)
committer
Junio C Hamano
<junkio@cox.net>
Sun, 15 Apr 2007 22:59:09 +0000
(15:59 -0700)
Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: Junio C Hamano <junkio@cox.net>
ident.c
patch
|
blob
|
history
diff --git
a/ident.c
b/ident.c
index bb03bddd34f2471ed130c499affc369758d4bfd9..b557ecd5397833ad14816e9fe61aa0880446303f 100644
(file)
--- 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