mirror of
https://git.zx2c4.com/cgit
synced 2025-07-12 19:24:30 +02:00
Mark several functions/variables static
Spotted by parsing the output of `gcc -Wmissing-prototypes [...]`. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
This commit is contained in:
parent
d5a43b429a
commit
bafab423f2
14 changed files with 64 additions and 60 deletions
|
@ -10,7 +10,7 @@
|
|||
#include <stdio.h>
|
||||
#include "configfile.h"
|
||||
|
||||
int next_char(FILE *f)
|
||||
static int next_char(FILE *f)
|
||||
{
|
||||
int c = fgetc(f);
|
||||
if (c == '\r') {
|
||||
|
@ -23,7 +23,7 @@ int next_char(FILE *f)
|
|||
return c;
|
||||
}
|
||||
|
||||
void skip_line(FILE *f)
|
||||
static void skip_line(FILE *f)
|
||||
{
|
||||
int c;
|
||||
|
||||
|
@ -31,7 +31,7 @@ void skip_line(FILE *f)
|
|||
;
|
||||
}
|
||||
|
||||
int read_config_line(FILE *f, char *line, const char **value, int bufsize)
|
||||
static int read_config_line(FILE *f, char *line, const char **value, int bufsize)
|
||||
{
|
||||
int i = 0, isname = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue