summaryrefslogtreecommitdiffstats
path: root/backend_shinkos1245.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2019-12-12 07:15:25 -0500
committerSolomon Peachy <pizza@shaftnet.org>2019-12-12 07:15:25 -0500
commit53904729c5731b8fd2d0466b9d3b5a646680ee23 (patch)
tree68d9ae00b92d6d782edb35967a9e0fcf3aeb03c8 /backend_shinkos1245.c
parent0a70fd1612858db7844992218f2b0559bdb334be (diff)
downloadselphy_print-53904729c5731b8fd2d0466b9d3b5a646680ee23.tar.gz
selphy_print-53904729c5731b8fd2d0466b9d3b5a646680ee23.tar.bz2
selphy_print-53904729c5731b8fd2d0466b9d3b5a646680ee23.zip
misc: use CUPS_BACKEND_OK instead of 0 as a return value.
Diffstat (limited to 'backend_shinkos1245.c')
-rw-r--r--backend_shinkos1245.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/backend_shinkos1245.c b/backend_shinkos1245.c
index 722ebf5..6a30c3d 100644
--- a/backend_shinkos1245.c
+++ b/backend_shinkos1245.c
@@ -309,7 +309,7 @@ static int shinkos1245_get_status(struct shinkos1245_ctx *ctx,
/* Byteswap important stuff */
resp->state.status2 = be32_to_cpu(resp->state.status2);
- return 0;
+ return CUPS_BACKEND_OK;
}
static int shinkos1245_get_media(struct shinkos1245_ctx *ctx)
@@ -374,7 +374,7 @@ static int shinkos1245_get_printerid(struct shinkos1245_ctx *ctx,
return ret;
}
- return 0;
+ return CUPS_BACKEND_OK;
}
static int shinkos1245_set_printerid(struct shinkos1245_ctx *ctx,
@@ -406,7 +406,7 @@ static int shinkos1245_set_printerid(struct shinkos1245_ctx *ctx,
ERROR("Bad return code on SET_PRINTERID command\n");
return -99;
}
- return 0;
+ return CUPS_BACKEND_OK;
}
static int shinkos1245_canceljob(struct shinkos1245_ctx *ctx,
@@ -431,7 +431,7 @@ static int shinkos1245_canceljob(struct shinkos1245_ctx *ctx,
ERROR("Bad return code on CANCELJOB command\n");
return -99;
}
- return 0;
+ return CUPS_BACKEND_OK;
}
static int shinkos1245_reset(struct shinkos1245_ctx *ctx)
@@ -454,7 +454,7 @@ static int shinkos1245_reset(struct shinkos1245_ctx *ctx)
ERROR("Bad return code on RESET command\n");
return -99;
}
- return 0;
+ return CUPS_BACKEND_OK;
}
@@ -478,7 +478,7 @@ static int shinkos1245_set_matte(struct shinkos1245_ctx *ctx,
return ret;
}
if (sts.code == CMD_CODE_OK)
- return 0;
+ return CUPS_BACKEND_OK;
if (sts.code == CMD_CODE_BAD)
return 1;
@@ -510,7 +510,7 @@ static int shinkos1245_get_matte(struct shinkos1245_ctx *ctx,
}
*intensity = sts.level;
- return 0;
+ return CUPS_BACKEND_OK;
}
static char* shinkos1245_tonecurves(int type, int table)
@@ -923,7 +923,7 @@ int shinkos1245_cmdline_arg(void *vctx, int argc, char **argv)
if (j) return j;
}
- return 0;
+ return CUPS_BACKEND_OK;
}
static void *shinkos1245_init(void)