summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--osdep-aix.c2
-rw-r--r--osdep-cygwin.c2
-rw-r--r--osdep-darwin.c4
-rw-r--r--osdep-hpux.c4
-rw-r--r--osdep-linux.c2
-rw-r--r--osdep-unknown.c2
6 files changed, 8 insertions, 8 deletions
diff --git a/osdep-aix.c b/osdep-aix.c
index 0a3d12e4..ef7d6c7e 100644
--- a/osdep-aix.c
+++ b/osdep-aix.c
@@ -26,7 +26,7 @@
#include "tmux.h"
char *
-osdep_get_name(unused int fd, char *tty)
+osdep_get_name(__unused int fd, char *tty)
{
struct psinfo p;
char *path;
diff --git a/osdep-cygwin.c b/osdep-cygwin.c
index 91bc5fc9..9a3ea408 100644
--- a/osdep-cygwin.c
+++ b/osdep-cygwin.c
@@ -27,7 +27,7 @@
#include "tmux.h"
char *
-osdep_get_name(int fd, unused char *tty)
+osdep_get_name(int fd, __unused char *tty)
{
FILE *f;
char *path, *buf;
diff --git a/osdep-darwin.c b/osdep-darwin.c
index 7be70375..40b18951 100644
--- a/osdep-darwin.c
+++ b/osdep-darwin.c
@@ -28,10 +28,10 @@ char *osdep_get_name(int, char *);
char *osdep_get_cwd(int);
struct event_base *osdep_event_init(void);
-#define unused __attribute__ ((unused))
+#define __unused __attribute__ ((__unused__))
char *
-osdep_get_name(int fd, unused char *tty)
+osdep_get_name(int fd, __unused char *tty)
{
struct proc_bsdinfo bsdinfo;
pid_t pgrp;
diff --git a/osdep-hpux.c b/osdep-hpux.c
index 4baa6d49..a6d75f94 100644
--- a/osdep-hpux.c
+++ b/osdep-hpux.c
@@ -23,13 +23,13 @@
#include "tmux.h"
char *
-osdep_get_name(unused int fd, unused char *tty)
+osdep_get_name(__unused int fd, __unused char *tty)
{
return (NULL);
}
char *
-osdep_get_cwd(unused int fd)
+osdep_get_cwd(__unused int fd)
{
return (NULL);
}
diff --git a/osdep-linux.c b/osdep-linux.c
index ad4c11cd..00501efb 100644
--- a/osdep-linux.c
+++ b/osdep-linux.c
@@ -28,7 +28,7 @@
#include "tmux.h"
char *
-osdep_get_name(int fd, unused char *tty)
+osdep_get_name(int fd, __unused char *tty)
{
FILE *f;
char *path, *buf;
diff --git a/osdep-unknown.c b/osdep-unknown.c
index 4de1ee1e..9465db97 100644
--- a/osdep-unknown.c
+++ b/osdep-unknown.c
@@ -23,7 +23,7 @@
#include "tmux.h"
char *
-osdep_get_name(unused int fd, unused char *tty)
+osdep_get_name(__unused int fd, __unused char *tty)
{
return (NULL);
}