Skip to content

Commit

Permalink
Add static to local only functions
Browse files Browse the repository at this point in the history
  • Loading branch information
sonertari committed Aug 6, 2018
1 parent 9ec07b6 commit 3387a69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions opts.c
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ check_value_yesno(const char *value, const char *name, int line_num)

#define MAX_TOKEN 10

int
static int
set_option(opts_t *opts, const char *argv0, const char *name, char *value, char **natengine, int line_num)
{
int yes;
Expand Down Expand Up @@ -1267,7 +1267,7 @@ set_option(opts_t *opts, const char *argv0, const char *name, char *value, char
* Separator param is needed for command line options only.
* Conf file option separator is ' '.
*/
int
static int
get_name_value(char **name, char **value, const char sep)
{
char *n, *v, *value_end;
Expand Down
2 changes: 1 addition & 1 deletion opts.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ void opts_set_daemon(opts_t *) NONNULL(1);
void opts_set_debug(opts_t *) NONNULL(1);
int opts_set_option(opts_t *, const char *, const char *, char **) NONNULL(1,2,3);

int load_conffile(opts_t *, const char *, char **) NONNULL(1,2,3);
int load_conffile(opts_t *, const char *, char **) NONNULL(1,2);
#endif /* !OPTS_H */

/* vim: set noet ft=c: */

0 comments on commit 3387a69

Please sign in to comment.