Skip to content

Commit 0be5cdb

Browse files
committed
fix: warning on gcc build
"format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘size_t’ {aka ‘unsigned int’}"
1 parent 73d2c4b commit 0be5cdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli_client/pbc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ void * connect_and_send_request(t_request * tr)
130130
snprintf(json_request,MAX_REQEST_STRLEN,"{\"package\": \"%s\", \"plugin\": \"%s\", \"method\": \"%s\", %s\"id\":%d}",tr->package,tr->object,tr->method,kwargs,123);
131131
json_len = strlen(json_request);
132132

133-
if (g_verbose) printf("Sending Request (%ld Bytes):\n%s\n",json_len,json_request);
133+
if (g_verbose) printf("Sending Request (%d Bytes):\n%s\n",json_len,json_request);
134134

135135
send_zmq_request_and_wait_response(json_request,json_len,json_response,MAX_REQEST_STRLEN,tr->address);
136136

0 commit comments

Comments
 (0)