Even more missing static
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Jun 8, 2007 at 02:54 UTC
16befb8b7fbfcc9b2d38931f4081669558300adf
9 files changed
+6
-32
builtin-stripspace.c
+1
-1
@@ -26,7 +26,7 @@ static int cleanup(char *line)
26
return 1;
27
}
28
29
-void stripspace(FILE *in, FILE *out)
29
+static void stripspace(FILE *in, FILE *out)
30
{
31
int empties = -1;
32
int incomplete = 0;
builtin.h
-1
@@ -7,7 +7,6 @@ extern const char git_version_string[];
7
extern const char git_usage_string[];
8
9
extern void help_unknown_cmd(const char *cmd);
10
-extern void stripspace(FILE *in, FILE *out);
10
extern int write_tree(unsigned char *sha1, int missing_ok, const char *prefix);
11
extern void prune_packed_objects(int);
12
commit.c
-9
@@ -1116,15 +1116,6 @@ struct commit *pop_commit(struct commit_list **stack)
1116
return item;
1117
}
1118
1119
-int count_parents(struct commit * commit)
1120
-{
1121
- int count;
1122
- struct commit_list * parents = commit->parents;
1123
- for (count = 0; parents; parents = parents->next,count++)
1124
- ;
1125
- return count;
1126
-}
1127
-
1119
void topo_sort_default_setter(struct commit *c, void *data)
1120
{
1121
c->util = data;
commit.h
-2
@@ -73,8 +73,6 @@ struct commit *pop_commit(struct commit_list **stack);
73
74
void clear_commit_marks(struct commit *commit, unsigned int mark);
75
76
-int count_parents(struct commit * commit);
77
-
76
/*
77
* Performs an in-place topological sort of list supplied.
78
*
diff.c
+3
-1
@@ -2103,6 +2103,8 @@ static int opt_arg(const char *arg, int arg_short, const char *arg_long, int *va
2103
return 1;
2104
}
2105
2106
+static int diff_scoreopt_parse(const char *opt);
2107
+
2108
int diff_opt_parse(struct diff_options *options, const char **av, int ac)
2109
{
2110
const char *arg = av[0];
@@ -2274,7 +2276,7 @@ static int parse_num(const char **cp_p)
2276
return (int)((num >= scale) ? MAX_SCORE : (MAX_SCORE * num / scale));
2277
}
2278
2277
-int diff_scoreopt_parse(const char *opt)
2279
+static int diff_scoreopt_parse(const char *opt)
2280
{
2281
int opt1, opt2, cmd;
2282
diff.h
-2
@@ -155,8 +155,6 @@ extern void diff_unmerge(struct diff_options *,
155
unsigned mode,
156
const unsigned char *sha1);
157
158
-extern int diff_scoreopt_parse(const char *opt);
159
-
158
#define DIFF_SETUP_REVERSE 1
159
#define DIFF_SETUP_USE_CACHE 2
160
#define DIFF_SETUP_USE_SIZE_CACHE 4
quote.c
+1
-13
@@ -20,7 +20,7 @@ static inline int need_bs_quote(char c)
20
return (c == '\'' || c == '!');
21
}
22
23
-size_t sq_quote_buf(char *dst, size_t n, const char *src)
23
+static size_t sq_quote_buf(char *dst, size_t n, const char *src)
24
{
25
char c;
26
char *bp = dst;
@@ -62,18 +62,6 @@ void sq_quote_print(FILE *stream, const char *src)
62
fputc('\'', stream);
63
}
64
65
-char *sq_quote(const char *src)
66
-{
67
- char *buf;
68
- size_t cnt;
69
-
70
- cnt = sq_quote_buf(NULL, 0, src) + 1;
71
- buf = xmalloc(cnt);
72
- sq_quote_buf(buf, cnt, src);
73
-
74
- return buf;
75
-}
76
-
65
char *sq_quote_argv(const char** argv, int count)
66
{
67
char *buf, *to;
quote.h
-2
@@ -28,9 +28,7 @@
28
* excluding the final null regardless of the buffer size.
29
*/
30
31
-extern char *sq_quote(const char *src);
31
extern void sq_quote_print(FILE *stream, const char *src);
33
-extern size_t sq_quote_buf(char *dst, size_t n, const char *src);
32
extern char *sq_quote_argv(const char** argv, int count);
33
34
/*
upload-pack.c
+1
-1
@@ -62,7 +62,7 @@ static ssize_t send_client_data(int fd, const char *data, ssize_t sz)
62
return safe_write(fd, data, sz);
63
}
64
65
-FILE *pack_pipe = NULL;
65
+static FILE *pack_pipe = NULL;
66
static void show_commit(struct commit *commit)
67
{
68
if (commit->object.flags & BOUNDARY)