Skip to content

Commit

Permalink
[PATCH] Make some needlessly global stuff static
Browse files Browse the repository at this point in the history
Insert 'static' where appropriate.

Signed-off-by: Peter Hagervall <hager@cs.umu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Peter Hagervall authored and Junio C Hamano committed Sep 28, 2005
1 parent 5acb6de commit a7928f8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions fsck-objects.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static void objreport(struct object *obj, const char *severity,
fputs("\n", stderr);
}

int objerror(struct object *obj, const char *err, ...)
static int objerror(struct object *obj, const char *err, ...)
{
va_list params;
va_start(params, err);
Expand All @@ -39,7 +39,7 @@ int objerror(struct object *obj, const char *err, ...)
return -1;
}

int objwarning(struct object *obj, const char *err, ...)
static int objwarning(struct object *obj, const char *err, ...)
{
va_list params;
va_start(params, err);
Expand Down
4 changes: 2 additions & 2 deletions http-fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct alt_base
struct alt_base *next;
};

struct alt_base *alt = NULL;
static struct alt_base *alt = NULL;

static SHA_CTX c;
static z_stream stream;
Expand Down Expand Up @@ -354,7 +354,7 @@ static int fetch_pack(struct alt_base *repo, unsigned char *sha1)
return 0;
}

int fetch_object(struct alt_base *repo, unsigned char *sha1)
static int fetch_object(struct alt_base *repo, unsigned char *sha1)
{
char *hex = sha1_to_hex(sha1);
char *filename = sha1_file_name(sha1);
Expand Down
2 changes: 1 addition & 1 deletion update-ref.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ static const char git_update_ref_usage[] = "git-update-ref <refname> <value> [<o

#define MAXDEPTH 5

const char *resolve_ref(const char *path, unsigned char *sha1)
static const char *resolve_ref(const char *path, unsigned char *sha1)
{
int depth = MAXDEPTH, len;
char buffer[256];
Expand Down

0 comments on commit a7928f8

Please sign in to comment.