Skip to content

Commit 08fbd78

Browse files
committed
Eliminate -Wformat warning on GCC 9.2.0
Just to make the build look clean.
1 parent f8f4aee commit 08fbd78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tarantool.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ static char *pid_gen(const char *host, int port, const char *login,
157157
len = spprintf(&plist_id, 0, "tarantool-%s:id=%s:%d-%s", prefix, host,
158158
port, login) + 1;
159159
if (suffix) {
160-
len = spprintf(&tmp,0,"%s[%.*s]",plist_id,suffix_len,suffix);
160+
len = spprintf(&tmp, 0, "%s[%.*s]", plist_id, (int) suffix_len,
161+
suffix);
161162
efree(plist_id);
162163
plist_id = tmp;
163164
}

0 commit comments

Comments
 (0)