summaryrefslogtreecommitdiff
path: root/backend/sm3840.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2023-02-12 17:36:29 +0100
committerJörg Frings-Fürst <debian@jff.email>2023-02-12 17:36:29 +0100
commit882fd010527b8d8823f09e19edbed3746265fa08 (patch)
treebe5c7cace6697afc753c152d13ad5145d0884a42 /backend/sm3840.c
parent527bedac30eb120915718eb7997e6dacd583512e (diff)
parente0d94cf4d39395df1e2c6bb4d967200298c13881 (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'backend/sm3840.c')
-rw-r--r--backend/sm3840.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/backend/sm3840.c b/backend/sm3840.c
index 159f600..672fb92 100644
--- a/backend/sm3840.c
+++ b/backend/sm3840.c
@@ -145,11 +145,12 @@ sane_read (SANE_Handle handle, SANE_Byte * buf, SANE_Int max_len,
unsigned char c, d;
int i;
- DBG (2, "+sane-read:%p %p %d %p\n", (unsigned char *) s, buf, max_len,
- (unsigned char *) len);
+ DBG (2, "+sane-read:%p %p %d %p\n", (void *) s, (void *) buf, max_len,
+ (void *) len);
DBG (2,
"+sane-read:remain:%lu offset:%lu linesleft:%d linebuff:%p linesread:%d\n",
- (u_long)s->remaining, (u_long)s->offset, s->linesleft, s->line_buffer, s->linesread);
+ (u_long) s->remaining, (u_long) s->offset, s->linesleft,
+ (void *) s->line_buffer, s->linesread);
if (!s->scanning)
return SANE_STATUS_INVAL;
@@ -798,7 +799,7 @@ sane_open (SANE_String_Const devicename, SANE_Handle * handle)
/* empty devicename -> use first device */
dev = first_dev;
}
- DBG (2, "using device: %s %p\n", dev->sane.name, (unsigned char *) dev);
+ DBG (2, "using device: %s %p\n", dev->sane.name, (void *) dev);
if (!dev)
return SANE_STATUS_INVAL;
s = calloc (sizeof (*s), 1);