From ff9f34572eff8085e85340bf3dfba020ad58070d Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 25 Nov 2017 10:45:51 -0500 Subject: [PATCH] Trailing whitespace fixes. --- backend_common.c | 4 ++-- backend_magicard.c | 18 +++++++++--------- backend_shinkos6245.c | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/backend_common.c b/backend_common.c index 09a9f7b..7d6bbb6 100644 --- a/backend_common.c +++ b/backend_common.c @@ -597,10 +597,10 @@ abort_release: abort_close: libusb_close(dev); - + abort: if (config) libusb_free_config_descriptor(config); - + /* Clean up the dictionary */ while (dlen--) { free (dict[dlen].key); diff --git a/backend_magicard.c b/backend_magicard.c index b95567a..d16bc3b 100644 --- a/backend_magicard.c +++ b/backend_magicard.c @@ -167,7 +167,7 @@ static uint8_t * magicard_parse_resp(uint8_t *buf, uint16_t len, uint16_t *respl struct magicard_resp_header *hdr = (struct magicard_resp_header *) buf; *resplen = len - sizeof(hdr->guard) - sizeof(hdr->subcmd_arg) - 2; - + return hdr->data; } @@ -244,7 +244,7 @@ static int magicard_query_status(struct magicard_ctx *ctx) int ret = 0; int i; uint8_t buf[256]; - + for (i = 0 ; ; i++) { uint16_t resplen = 0; uint8_t *resp; @@ -261,16 +261,16 @@ static int magicard_query_status(struct magicard_ctx *ctx) return ret; memset(buf, 0, sizeof(buf)); - + ret = read_data(ctx->dev, ctx->endp_up, buf, sizeof(buf), &num); - + if (ret < 0) return ret; resp = magicard_parse_resp(buf, num, &resplen); resp[resplen] = 0; - switch(magicard_sta_requests[i].type) { + switch(magicard_sta_requests[i].type) { case TYPE_IPADDR: { int32_t ipaddr; uint8_t *addr = (uint8_t *) &ipaddr; @@ -311,7 +311,7 @@ static int magicard_query_status(struct magicard_ctx *ctx) resp); } } - + return ret; } @@ -431,7 +431,7 @@ static int magicard_read_parse(void *vctx, int data_fd) { uint8_t *in_y, *in_m, *in_c; uint8_t *out_y, *out_m, *out_c, *out_k; uint32_t len_y = 0, len_m = 0, len_c = 0, len_k = 0; - + if (!ctx) return CUPS_BACKEND_FAILED; @@ -562,7 +562,7 @@ static int magicard_read_parse(void *vctx, int data_fd) { ctx->datalen += sprintf((char*)ctx->databuf + ctx->datalen, ",SZK%u", len_k); } } - + /* Terminate command stream */ ctx->databuf[ctx->datalen++] = 0x1c; @@ -773,7 +773,7 @@ struct dyesub_backend magicard_backend = { * Each plane terminates with 0x1c __ 0x3a, where __ is 0x42, 0x47, 0x52, and 0x4b for B/G/R/K respectively. Terminator is _not_ part of length. * Image data is 6bpp for B/G/R and 1bpp for K, 672*1016 pixels - * Organized in a series of 84-byte rows. + * Organized in a series of 84-byte rows. * Byte data is LSB first. * Each row is a single stripe of a single bit of a pixel, so color data is b0b0b0b0.. b1b1b1b1.. .. b5b5b5b5. diff --git a/backend_shinkos6245.c b/backend_shinkos6245.c index 4480943..a145e3a 100644 --- a/backend_shinkos6245.c +++ b/backend_shinkos6245.c @@ -1911,7 +1911,7 @@ struct dyesub_backend shinkos6245_backend = { .query_serno = shinkos6245_query_serno, .devices = { { USB_VID_SHINKO, USB_PID_SHINKO_S6245, P_SHINKO_S6245, NULL}, - { USB_VID_HITI, USB_PID_HITI_P910L, P_SHINKO_S6245, NULL}, + { USB_VID_HITI, USB_PID_HITI_P910L, P_SHINKO_S6245, NULL}, { 0, 0, 0, NULL} } };