unused -> __unused.

This commit is contained in:
Nicholas Marriott 2015-11-18 16:45:44 +00:00
parent a58eaec540
commit c15487318b
6 changed files with 8 additions and 8 deletions

View File

@ -26,7 +26,7 @@
#include "tmux.h" #include "tmux.h"
char * char *
osdep_get_name(unused int fd, char *tty) osdep_get_name(__unused int fd, char *tty)
{ {
struct psinfo p; struct psinfo p;
char *path; char *path;

View File

@ -27,7 +27,7 @@
#include "tmux.h" #include "tmux.h"
char * char *
osdep_get_name(int fd, unused char *tty) osdep_get_name(int fd, __unused char *tty)
{ {
FILE *f; FILE *f;
char *path, *buf; char *path, *buf;

View File

@ -28,10 +28,10 @@ char *osdep_get_name(int, char *);
char *osdep_get_cwd(int); char *osdep_get_cwd(int);
struct event_base *osdep_event_init(void); struct event_base *osdep_event_init(void);
#define unused __attribute__ ((unused)) #define __unused __attribute__ ((__unused__))
char * char *
osdep_get_name(int fd, unused char *tty) osdep_get_name(int fd, __unused char *tty)
{ {
struct proc_bsdinfo bsdinfo; struct proc_bsdinfo bsdinfo;
pid_t pgrp; pid_t pgrp;

View File

@ -23,13 +23,13 @@
#include "tmux.h" #include "tmux.h"
char * char *
osdep_get_name(unused int fd, unused char *tty) osdep_get_name(__unused int fd, __unused char *tty)
{ {
return (NULL); return (NULL);
} }
char * char *
osdep_get_cwd(unused int fd) osdep_get_cwd(__unused int fd)
{ {
return (NULL); return (NULL);
} }

View File

@ -28,7 +28,7 @@
#include "tmux.h" #include "tmux.h"
char * char *
osdep_get_name(int fd, unused char *tty) osdep_get_name(int fd, __unused char *tty)
{ {
FILE *f; FILE *f;
char *path, *buf; char *path, *buf;

View File

@ -23,7 +23,7 @@
#include "tmux.h" #include "tmux.h"
char * char *
osdep_get_name(unused int fd, unused char *tty) osdep_get_name(__unused int fd, __unused char *tty)
{ {
return (NULL); return (NULL);
} }