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;
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"), \