aboutsummaryrefslogtreecommitdiffstats
path: root/libgamma_x_randr_internal_translate_error.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-03-07 22:51:21 +0100
committerMattias Andrée <maandree@kth.se>2021-03-07 22:51:21 +0100
commitbaa6a1cf7979c095c1081daa2a2d1134c76d2f1b (patch)
treed0525238a334091eb4d241b0b83da1a4a1793d5b /libgamma_x_randr_internal_translate_error.c
parentStart replacing info manual with man pages (diff)
downloadlibgamma-baa6a1cf7979c095c1081daa2a2d1134c76d2f1b.tar.gz
libgamma-baa6a1cf7979c095c1081daa2a2d1134c76d2f1b.tar.bz2
libgamma-baa6a1cf7979c095c1081daa2a2d1134c76d2f1b.tar.xz
misc
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libgamma_x_randr_internal_translate_error.c')
-rw-r--r--libgamma_x_randr_internal_translate_error.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libgamma_x_randr_internal_translate_error.c b/libgamma_x_randr_internal_translate_error.c
index 7752c03..67356d9 100644
--- a/libgamma_x_randr_internal_translate_error.c
+++ b/libgamma_x_randr_internal_translate_error.c
@@ -16,13 +16,13 @@ libgamma_x_randr_internal_translate_error(int error_code, int default_error, int
{
int r = LIBGAMMA_ERRNO_SET;
switch (error_code) {
- case XCB_CONN_ERROR: errno = ECONNABORTED; break;
- case XCB_CONN_CLOSED_EXT_NOTSUPPORTED: errno = ENOPROTOOPT; break;
- case XCB_CONN_CLOSED_MEM_INSUFFICIENT: errno = ENOMEM; break;
- case XCB_CONN_CLOSED_REQ_LEN_EXCEED: errno = EMSGSIZE; break;
- case XCB_CONN_CLOSED_PARSE_ERR: r = LIBGAMMA_NO_SUCH_SITE; break;
+ case XCB_CONN_ERROR: errno = ECONNABORTED; break;
+ case XCB_CONN_CLOSED_EXT_NOTSUPPORTED: errno = ENOPROTOOPT; break;
+ case XCB_CONN_CLOSED_MEM_INSUFFICIENT: errno = ENOMEM; break;
+ case XCB_CONN_CLOSED_REQ_LEN_EXCEED: errno = EMSGSIZE; break;
+ case XCB_CONN_CLOSED_PARSE_ERR: r = LIBGAMMA_NO_SUCH_SITE; break;
case XCB_CONN_CLOSED_INVALID_SCREEN: r = LIBGAMMA_NO_SUCH_PARTITION; break;
- case XCB_CONN_CLOSED_FDPASSING_FAILED: errno = EIO; break;
+ case XCB_CONN_CLOSED_FDPASSING_FAILED: errno = EIO; break;
default:
r = default_error;
break;