mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 19:39:04 +00:00
Warning fixes from Carlo Marcelo Arenas Belón.
This commit is contained in:
parent
1c1ec84aa3
commit
e6ee3e9504
@ -52,7 +52,6 @@ cmd_respawn_pane_exec(struct cmd *self, struct cmdq_item *item)
|
||||
struct session *s = item->target.s;
|
||||
struct winlink *wl = item->target.wl;
|
||||
struct window_pane *wp = item->target.wp;
|
||||
struct client *c = cmd_find_client(item, NULL, 1);
|
||||
char *cause = NULL;
|
||||
|
||||
memset(&sc, 0, sizeof sc);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user