Skip to content

Commit c2e8418

Browse files
committed
lib BUGFIX printf args type mismatch
1 parent aa4bbe0 commit c2e8418

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ nc_write(struct nc_session *session, const void *buf, uint32_t count)
568568
return -1;
569569
}
570570

571-
DBG(session, "Sending message:\n%.*s\n", (int)count, buf);
571+
DBG(session, "Sending message:\n%.*s\n", (int)count, (char *)buf);
572572

573573
do {
574574
interrupted = 0;

src/session_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ retrieve_module_data_localfile(const char *name, const char *rev, struct clb_dat
418418
if (!model_data) {
419419
ERRMEM;
420420
} else if ((l = fread(model_data, 1, length, f)) != length) {
421-
ERR(clb_data->session, "Reading module from \"%s\" failed (%d bytes read, but %d expected).", localfile, l,
421+
ERR(clb_data->session, "Reading module from \"%s\" failed (%ld bytes read, but %ld expected).", localfile, l,
422422
length);
423423
free(model_data);
424424
model_data = NULL;

0 commit comments

Comments
 (0)