mirror of
https://github.com/tmux/tmux.git
synced 2025-01-27 00:18:49 +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 session *s = item->target.s;
|
||||||
struct winlink *wl = item->target.wl;
|
struct winlink *wl = item->target.wl;
|
||||||
struct window_pane *wp = item->target.wp;
|
struct window_pane *wp = item->target.wp;
|
||||||
struct client *c = cmd_find_client(item, NULL, 1);
|
|
||||||
char *cause = NULL;
|
char *cause = NULL;
|
||||||
|
|
||||||
memset(&sc, 0, sizeof sc);
|
memset(&sc, 0, sizeof sc);
|
||||||
|
@ -30,7 +30,9 @@ 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);
|
||||||
|
|
||||||
|
#ifndef __unused
|
||||||
#define __unused __attribute__ ((__unused__))
|
#define __unused __attribute__ ((__unused__))
|
||||||
|
#endif
|
||||||
|
|
||||||
char *
|
char *
|
||||||
osdep_get_name(int fd, __unused char *tty)
|
osdep_get_name(int fd, __unused char *tty)
|
||||||
@ -47,6 +49,7 @@ osdep_get_name(int fd, __unused char *tty)
|
|||||||
&bsdinfo, sizeof bsdinfo);
|
&bsdinfo, sizeof bsdinfo);
|
||||||
if (ret == sizeof bsdinfo && *bsdinfo.pbsi_comm != '\0')
|
if (ret == sizeof bsdinfo && *bsdinfo.pbsi_comm != '\0')
|
||||||
return (strdup(bsdinfo.pbsi_comm));
|
return (strdup(bsdinfo.pbsi_comm));
|
||||||
|
return (NULL);
|
||||||
#else
|
#else
|
||||||
int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, 0 };
|
int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, 0 };
|
||||||
size_t size;
|
size_t size;
|
||||||
|
Loading…
Reference in New Issue
Block a user