diff options
author | Lukas Fleischer <cgit@cryptocrack.de> | 2013-03-04 16:52:33 (JST) |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2013-03-05 09:50:39 (JST) |
commit | bafab423f20bc1448b293842c235965e1681f07e (patch) | |
tree | 18c4bef1e4714c4abd20b8e1d5ec04db3ae3b9ac /html.c | |
parent | d5a43b429a4248a02e3a403f76fff0cbae92ef32 (diff) | |
download | cgit-bafab423f20bc1448b293842c235965e1681f07e.zip cgit-bafab423f20bc1448b293842c235965e1681f07e.tar.gz |
Mark several functions/variables static
Spotted by parsing the output of `gcc -Wmissing-prototypes [...]`.
Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -39,7 +39,7 @@ static const char* url_escape_table[256] = { | |||
39 | "%fe", "%ff" | 39 | "%fe", "%ff" |
40 | }; | 40 | }; |
41 | 41 | ||
42 | int htmlfd = STDOUT_FILENO; | 42 | static int htmlfd = STDOUT_FILENO; |
43 | 43 | ||
44 | char *fmt(const char *format, ...) | 44 | char *fmt(const char *format, ...) |
45 | { | 45 | { |
@@ -266,7 +266,7 @@ int html_include(const char *filename) | |||
266 | return 0; | 266 | return 0; |
267 | } | 267 | } |
268 | 268 | ||
269 | int hextoint(char c) | 269 | static int hextoint(char c) |
270 | { | 270 | { |
271 | if (c >= 'a' && c <= 'f') | 271 | if (c >= 'a' && c <= 'f') |
272 | return 10 + c - 'a'; | 272 | return 10 + c - 'a'; |
@@ -278,7 +278,7 @@ int hextoint(char c) | |||
278 | return -1; | 278 | return -1; |
279 | } | 279 | } |
280 | 280 | ||
281 | char *convert_query_hexchar(char *txt) | 281 | static char *convert_query_hexchar(char *txt) |
282 | { | 282 | { |
283 | int d1, d2, n; | 283 | int d1, d2, n; |
284 | n = strlen(txt); | 284 | n = strlen(txt); |