diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-01-07 04:44:13 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-01-07 04:44:13 +0100 |
commit | 772afbe98c7e74be35e7e5318967ce594e4d93e8 (patch) | |
tree | 006ef64214c4ab980ff3125ea812f42235706b5b /sys/src/cmd/ssh | |
parent | 9c99d0c8d3236b87bd292ac29d4d1b2d5f550bd5 (diff) |
format pointer subtraction results with %zd instead of %ld (for long -> intptr on amd64)
Diffstat (limited to 'sys/src/cmd/ssh')
-rw-r--r-- | sys/src/cmd/ssh/msg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/ssh/msg.c b/sys/src/cmd/ssh/msg.c index bdbc63cf5..d74facb44 100644 --- a/sys/src/cmd/ssh/msg.c +++ b/sys/src/cmd/ssh/msg.c @@ -102,7 +102,7 @@ allocmsg(Conn *c, int type, int len) void unrecvmsg(Conn *c, Msg *m) { - debug(DBG_PROTO, "unreceived %s len %ld\n", msgnames[m->type], m->ep - m->rp); + debug(DBG_PROTO, "unreceived %s len %zd\n", msgnames[m->type], m->ep - m->rp); free(c->unget); c->unget = m; } @@ -171,7 +171,7 @@ recvmsg(Conn *c, int type) Msg *m; while((m = recvmsg0(c)) != nil){ - debug(DBG_PROTO, "received %s len %ld\n", msgnames[m->type], m->ep - m->rp); + debug(DBG_PROTO, "received %s len %zd\n", msgnames[m->type], m->ep - m->rp); if(m->type != SSH_MSG_DEBUG && m->type != SSH_MSG_IGNORE) break; if(m->type == SSH_MSG_DEBUG) |