git config: codestyle cleanups

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Felipe Contreras 2009-02-21 02:48:53 +02:00 committed by Junio C Hamano
parent 3bec8ff99a
commit 4b951b7eb0
1 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ static int show_all_config(const char *key_, const char *value_, void *cb)
return 0; return 0;
} }


static int show_config(const char* key_, const char* value_, void *cb) static int show_config(const char *key_, const char *value_, void *cb)
{ {
char value[256]; char value[256];
const char *vptr = value; const char *vptr = value;
@ -74,7 +74,7 @@ static int show_config(const char* key_, const char* value_, void *cb)
return 0; return 0;
} }


static int get_value(const char* key_, const char* regex_) static int get_value(const char *key_, const char *regex_)
{ {
int ret = -1; int ret = -1;
char *tl; char *tl;
@ -284,7 +284,7 @@ static int get_colorbool(int argc, const char **argv)
int cmd_config(int argc, const char **argv, const char *prefix) int cmd_config(int argc, const char **argv, const char *prefix)
{ {
int nongit; int nongit;
char* value; char *value;
const char *file = setup_git_directory_gently(&nongit); const char *file = setup_git_directory_gently(&nongit);


config_exclusive_filename = getenv(CONFIG_ENVIRONMENT); config_exclusive_filename = getenv(CONFIG_ENVIRONMENT);