From: Jim Meyering Date: Fri, 21 Aug 2009 12:45:13 +0000 (+0200) Subject: fish.c: avoid warnings X-Git-Tag: 1.0.69~46 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=2d80a11d189e4785a9804c87588dfabd1d593007;p=libguestfs.git fish.c: avoid warnings * fish/rc.c (UNIX_PATH_MAX): Remove unused definition. * fish/fish.h (rc_listen): Declare with __attribute__((noreturn)). --- diff --git a/fish/fish.h b/fish/fish.h index a6cc8c9..b7ed922 100644 --- a/fish/fish.h +++ b/fish/fish.h @@ -78,7 +78,7 @@ extern int do_glob (const char *cmd, int argc, char *argv[]); extern int do_more (const char *cmd, int argc, char *argv[]); /* in rc.c (remote control) */ -extern void rc_listen (void); +extern void rc_listen (void) __attribute__((noreturn)); extern int rc_remote (int pid, const char *cmd, int argc, char *argv[], int exit_on_error); diff --git a/fish/rc.c b/fish/rc.c index 57f1c36..5423c22 100644 --- a/fish/rc.c +++ b/fish/rc.c @@ -34,8 +34,6 @@ #include "fish.h" #include "rc_protocol.h" -#define UNIX_PATH_MAX 108 - static void create_sockpath (pid_t pid, char *sockpath, int len, struct sockaddr_un *addr) {