summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>2009-06-25 12:07:12 +0200
committerLennart Poettering <lennart@poettering.net>2009-06-29 17:41:45 +0200
commit6f447928066626e747df8f32485e71c393119a79 (patch)
treeb68726ea0a382f46ec22660dd59ac23573faa349
parent9a2ac32dcd337cf3dc2293cac73756c66d7891b8 (diff)
Only declare saved_errno when it's going to be used (on Linux).
-rw-r--r--src/pulsecore/core-util.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c
index 4550344f..6c94a71d 100644
--- a/src/pulsecore/core-util.c
+++ b/src/pulsecore/core-util.c
@@ -2238,10 +2238,9 @@ int pa_close_all(int except_fd, ...) {
int pa_close_allv(const int except_fds[]) {
struct rlimit rl;
int maxfd, fd;
- int saved_errno;
#ifdef __linux__
-
+ int saved_errno;
DIR *d;
if ((d = opendir("/proc/self/fd"))) {