From 48e00cf947c47718b98d80c43443ea47376b74b0 Mon Sep 17 00:00:00 2001 From: Daniel Roethlisberger Date: Sun, 16 Nov 2014 00:07:10 +0100 Subject: [PATCH] Remove stubs that should never be used --- proc.c | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/proc.c b/proc.c index a65561a..7f39a9c 100644 --- a/proc.c +++ b/proc.c @@ -40,8 +40,6 @@ #include #endif /* HAVE_DARWIN_LIBPROC */ -#ifdef HAVE_LOCAL_PROCINFO - /* * Local process lookup. @@ -145,14 +143,7 @@ errout2: errout1: return ret; } -#else /* !HAVE_DARWIN_LIBPROC */ -int -proc_pid_for_addr(pid_t *result, UNUSED struct sockaddr *src_addr, - UNUSED socklen_t src_addrlen) { - *result = -1; - return 0; -} -#endif /* !HAVE_DARWIN_LIBPROC */ +#endif /* HAVE_DARWIN_LIBPROC */ /* @@ -187,15 +178,6 @@ proc_get_info(pid_t pid, char **path, uid_t *uid, gid_t *gid) { return 0; } -#else /* !HAVE_DARWIN_LIBPROC */ -int -proc_get_info(UNUSED pid_t pid, UNUSED char **path, - UNUSED uid_t *uid, UNUSED gid_t *gid) { - /* unsupported */ - return -1; -} -#endif /* !HAVE_DARWIN_LIBPROC */ - -#endif /* HAVE_LOCAL_PROCINFO */ +#endif /* HAVE_DARWIN_LIBPROC */ /* vim: set noet ft=c: */