diff options
author | Jim Meyering <meyering@redhat.com> | 2009-08-21 14:45:13 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-08-21 15:24:25 +0200 |
commit | 2d80a11d189e4785a9804c87588dfabd1d593007 (patch) | |
tree | f928753bd272e0c8db9b3336c7e176bf82e5dac8 /fish | |
parent | c17ff8145718ed86419a7f6c5000b73dd54e324a (diff) | |
download | libguestfs-2d80a11d189e4785a9804c87588dfabd1d593007.tar.gz libguestfs-2d80a11d189e4785a9804c87588dfabd1d593007.tar.xz libguestfs-2d80a11d189e4785a9804c87588dfabd1d593007.zip |
fish.c: avoid warnings
* fish/rc.c (UNIX_PATH_MAX): Remove unused definition.
* fish/fish.h (rc_listen): Declare with __attribute__((noreturn)).
Diffstat (limited to 'fish')
-rw-r--r-- | fish/fish.h | 2 | ||||
-rw-r--r-- | fish/rc.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/fish/fish.h b/fish/fish.h index a6cc8c99..b7ed922d 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); @@ -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) { |