diff options
author | 2016-10-10 13:54:47 +0000 | |
---|---|---|
committer | 2016-10-10 13:54:47 +0000 | |
commit | 8d2662b6cc251456d6d206754d2350af797357ad (patch) | |
tree | 7ff0807c5f2e390134341b0e174a4562bd1c63e7 /usr.bin/tmux/paste.c | |
parent | Add more context to fatal*() messages so it makes easier to debug proc.c (diff) | |
download | wireguard-openbsd-8d2662b6cc251456d6d206754d2350af797357ad.tar.xz wireguard-openbsd-8d2662b6cc251456d6d206754d2350af797357ad.zip |
Some more static.
Diffstat (limited to 'usr.bin/tmux/paste.c')
-rw-r--r-- | usr.bin/tmux/paste.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/usr.bin/tmux/paste.c b/usr.bin/tmux/paste.c index bb0ceb39e2c..7def7bb846c 100644 --- a/usr.bin/tmux/paste.c +++ b/usr.bin/tmux/paste.c @@ -1,4 +1,4 @@ -/* $OpenBSD: paste.c,v 1.35 2016/10/05 12:34:05 nicm Exp $ */ +/* $OpenBSD: paste.c,v 1.36 2016/10/10 13:54:47 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -43,27 +43,27 @@ struct paste_buffer { RB_ENTRY(paste_buffer) time_entry; }; -u_int paste_next_index; -u_int paste_next_order; -u_int paste_num_automatic; +static u_int paste_next_index; +static u_int paste_next_order; +static u_int paste_num_automatic; RB_HEAD(paste_name_tree, paste_buffer) paste_by_name; RB_HEAD(paste_time_tree, paste_buffer) paste_by_time; -int paste_cmp_names(const struct paste_buffer *, const struct paste_buffer *); -RB_PROTOTYPE(paste_name_tree, paste_buffer, name_entry, paste_cmp_names); -RB_GENERATE(paste_name_tree, paste_buffer, name_entry, paste_cmp_names); +static int paste_cmp_names(const struct paste_buffer *, + const struct paste_buffer *); +RB_GENERATE_STATIC(paste_name_tree, paste_buffer, name_entry, paste_cmp_names); -int paste_cmp_times(const struct paste_buffer *, const struct paste_buffer *); -RB_PROTOTYPE(paste_time_tree, paste_buffer, time_entry, paste_cmp_times); -RB_GENERATE(paste_time_tree, paste_buffer, time_entry, paste_cmp_times); +static int paste_cmp_times(const struct paste_buffer *, + const struct paste_buffer *); +RB_GENERATE_STATIC(paste_time_tree, paste_buffer, time_entry, paste_cmp_times); -int +static int paste_cmp_names(const struct paste_buffer *a, const struct paste_buffer *b) { return (strcmp(a->name, b->name)); } -int +static int paste_cmp_times(const struct paste_buffer *a, const struct paste_buffer *b) { if (a->order > b->order) |