diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2019-04-10 19:27:09 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2019-04-10 19:27:09 +0100 |
commit | e6ee3e9504e0abc9014e1b20ac6a9c43dd6145fb (patch) | |
tree | e768698a6eb634119d7d3de69f21ea12f657e82a /osdep-darwin.c | |
parent | 1c1ec84aa3362bd9d87f32a7afa6d07017adccfc (diff) | |
download | rtmux-e6ee3e9504e0abc9014e1b20ac6a9c43dd6145fb.tar.gz rtmux-e6ee3e9504e0abc9014e1b20ac6a9c43dd6145fb.tar.bz2 rtmux-e6ee3e9504e0abc9014e1b20ac6a9c43dd6145fb.zip |
Warning fixes from Carlo Marcelo Arenas Belón.
Diffstat (limited to 'osdep-darwin.c')
-rw-r--r-- | osdep-darwin.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/osdep-darwin.c b/osdep-darwin.c index 5d69cdda..d4a88028 100644 --- a/osdep-darwin.c +++ b/osdep-darwin.c @@ -30,7 +30,9 @@ char *osdep_get_name(int, char *); char *osdep_get_cwd(int); struct event_base *osdep_event_init(void); +#ifndef __unused #define __unused __attribute__ ((__unused__)) +#endif char * osdep_get_name(int fd, __unused char *tty) @@ -47,6 +49,7 @@ osdep_get_name(int fd, __unused char *tty) &bsdinfo, sizeof bsdinfo); if (ret == sizeof bsdinfo && *bsdinfo.pbsi_comm != '\0') return (strdup(bsdinfo.pbsi_comm)); + return (NULL); #else int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, 0 }; size_t size; |