diff options
author | nicm <nicm> | 2016-10-10 13:54:47 +0000 |
---|---|---|
committer | nicm <nicm> | 2016-10-10 13:54:47 +0000 |
commit | 7d4b416fe690b062f02097e95dbb7619a6fb05fe (patch) | |
tree | 6f9042db01fc90006d778e57c9f8ea8d00dd0c01 /arguments.c | |
parent | b8f2dd8237dca568308e1c273f376191f55e880e (diff) | |
download | rtmux-7d4b416fe690b062f02097e95dbb7619a6fb05fe.tar.gz rtmux-7d4b416fe690b062f02097e95dbb7619a6fb05fe.tar.bz2 rtmux-7d4b416fe690b062f02097e95dbb7619a6fb05fe.zip |
Some more static.
Diffstat (limited to 'arguments.c')
-rw-r--r-- | arguments.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arguments.c b/arguments.c index 501f38df..3dbfbfb7 100644 --- a/arguments.c +++ b/arguments.c @@ -35,12 +35,13 @@ struct args_entry { RB_ENTRY(args_entry) entry; }; -struct args_entry *args_find(struct args *, u_char); +static struct args_entry *args_find(struct args *, u_char); -RB_GENERATE(args_tree, args_entry, entry, args_cmp); +static int args_cmp(struct args_entry *, struct args_entry *); +RB_GENERATE_STATIC(args_tree, args_entry, entry, args_cmp); /* Arguments tree comparison function. */ -int +static int args_cmp(struct args_entry *a1, struct args_entry *a2) { return (a1->flag - a2->flag); @@ -71,7 +72,7 @@ args_create(int argc, ...) } /* Find a flag in the arguments tree. */ -struct args_entry * +static struct args_entry * args_find(struct args *args, u_char ch) { struct args_entry entry; |