From e1dfa207b2f03e2c06ccfdc6c1c68598703ba4d1 Mon Sep 17 00:00:00 2001 From: Andre Date: Sun, 11 Jun 2006 10:17:48 +0200 Subject: [PATCH] audioc: do not duplicate E_CREDENTIALS --- audioc.c | 4 ++-- error.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/audioc.c b/audioc.c index afff14a1..0b0d2fb7 100644 --- a/audioc.c +++ b/audioc.c @@ -122,8 +122,8 @@ int main(int argc, char *argv[]) if (connect(fd, (struct sockaddr *)&unix_addr, UNIX_PATH_MAX) < 0) goto out; fprintf(stderr, "loaded: %d\n", loaded); - ret = -E_CREDENTIALS; - if (send_cred_buffer(fd, args) < 0) + ret = send_cred_buffer(fd, args); + if (ret < 0) goto out; for (;;) { int max_fileno = -1, check_write = 0; diff --git a/error.h b/error.h index 285191cc..7d10ff23 100644 --- a/error.h +++ b/error.h @@ -97,7 +97,6 @@ extern const char **para_errlist[]; PARA_ERROR(AUDIOC_WRITE, "audioc write error"), \ PARA_ERROR(INIT_SOCK_ADDR, "can not init socket"), \ PARA_ERROR(AUDIOC_CONNECT, "audioc connect error"), \ - PARA_ERROR(CREDENTIALS, "failed to send unix socket credentials"), \ PARA_ERROR(AUDIOC_OVERRUN, "audioc buffer overrun"), \ -- 2.39.5