mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +00:00
Use __unused rather than rolling our own.
This commit is contained in:
parent
5a5b950e8b
commit
577c0e3e5a
30 changed files with 68 additions and 69 deletions
|
|
@ -246,7 +246,7 @@ server_client_unref(struct client *c)
|
|||
|
||||
/* Free dead client. */
|
||||
void
|
||||
server_client_free(unused int fd, unused short events, void *arg)
|
||||
server_client_free(__unused int fd, __unused short events, void *arg)
|
||||
{
|
||||
struct client *c = arg;
|
||||
|
||||
|
|
@ -818,7 +818,7 @@ server_client_reset_state(struct client *c)
|
|||
|
||||
/* Repeat time callback. */
|
||||
void
|
||||
server_client_repeat_timer(unused int fd, unused short events, void *data)
|
||||
server_client_repeat_timer(__unused int fd, __unused short events, void *data)
|
||||
{
|
||||
struct client *c = data;
|
||||
|
||||
|
|
@ -1214,7 +1214,7 @@ server_client_dispatch_shell(struct client *c)
|
|||
|
||||
/* Event callback to push more stdout data if any left. */
|
||||
static void
|
||||
server_client_stdout_cb(unused int fd, unused short events, void *arg)
|
||||
server_client_stdout_cb(__unused int fd, __unused short events, void *arg)
|
||||
{
|
||||
struct client *c = arg;
|
||||
|
||||
|
|
@ -1255,7 +1255,7 @@ server_client_push_stdout(struct client *c)
|
|||
|
||||
/* Event callback to push more stderr data if any left. */
|
||||
static void
|
||||
server_client_stderr_cb(unused int fd, unused short events, void *arg)
|
||||
server_client_stderr_cb(__unused int fd, __unused short events, void *arg)
|
||||
{
|
||||
struct client *c = arg;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue