From f33e43364af809ae6a14fe40cbf9ad0ce465c8c7 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 17 May 2022 16:17:32 +0200 Subject: [PATCH] Remove E_PERM. There is only one user which may as well use the standard error code. --- command.c | 2 +- error.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/command.c b/command.c index 5b17f116..e3f12931 100644 --- a/command.c +++ b/command.c @@ -828,7 +828,7 @@ static int run_command(struct command_context *cc, struct iovec *iov) } perms = server_command_perms[ret]; if ((perms & cc->u->perms) != perms) - return -E_PERM; + return -ERRNO_TO_PARA_ERROR(EPERM); lcmd = lls_cmd(ret, server_cmd_suite); end = iov->iov_base + iov->iov_len; for (i = 0; p < end; i++) diff --git a/error.h b/error.h index cd5c20ef..60c23294 100644 --- a/error.h +++ b/error.h @@ -172,7 +172,6 @@ PARA_ERROR(OPUS_HEADER, "invalid opus header"), \ PARA_ERROR(OPUS_SET_GAIN, "opus: could not set gain"), \ PARA_ERROR(PATH_FOUND, ""), /* not really an error */ \ - PARA_ERROR(PERM, "permission denied"), \ PARA_ERROR(PLAYLIST_EMPTY, "attempted to load empty playlist"), \ PARA_ERROR(PLAYLIST_LOADED, ""), /* not really an error */ \ PARA_ERROR(PREBUFFER_SUCCESS, "prebuffering complete"), \ -- 2.39.2