Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/tmux/dist tmux: move __printflike to the declar...



details:   https://anonhg.NetBSD.org/src/rev/902b8c5492ce
branches:  trunk
changeset: 378651:902b8c5492ce
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Apr 20 17:42:31 2021 +0000

description:
tmux: move __printflike to the declaration in the header

Noted by Akihiko HAYASHI.

diffstat:

 external/bsd/tmux/dist/status.c |  2 +-
 external/bsd/tmux/dist/tmux.h   |  3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r a8deb71be33c -r 902b8c5492ce external/bsd/tmux/dist/status.c
--- a/external/bsd/tmux/dist/status.c   Tue Apr 20 10:39:58 2021 +0000
+++ b/external/bsd/tmux/dist/status.c   Tue Apr 20 17:42:31 2021 +0000
@@ -422,7 +422,7 @@ status_redraw(struct client *c)
 }
 
 /* Set a status line message. */
-void __printflike(5, 0)
+void
 status_message_set(struct client *c, int delay, int ignore_styles,
     int ignore_keys, const char *fmt, ...)
 {
diff -r a8deb71be33c -r 902b8c5492ce external/bsd/tmux/dist/tmux.h
--- a/external/bsd/tmux/dist/tmux.h     Tue Apr 20 10:39:58 2021 +0000
+++ b/external/bsd/tmux/dist/tmux.h     Tue Apr 20 17:42:31 2021 +0000
@@ -2492,7 +2492,8 @@ struct style_range *status_get_range(str
 void    status_init(struct client *);
 void    status_free(struct client *);
 int     status_redraw(struct client *);
-void status_message_set(struct client *, int, int, int, const char *, ...);
+void status_message_set(struct client *, int, int, int, const char *, ...)
+           __printflike(5, 0);
 void    status_message_clear(struct client *);
 int     status_message_redraw(struct client *);
 void    status_prompt_set(struct client *, struct cmd_find_state *,



Home | Main Index | Thread Index | Old Index