Update tcpsocket.c to support 64-bit size_t

This commit is contained in:
Michael Peleshenko 2019-04-28 14:18:02 -04:00 committed by GitHub
parent 17b02ad07f
commit e28dd24d18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -156,7 +156,7 @@ static void client_not_be_used_read_cb(struct ustream *s, int bytes) {
len = ustream_read(s, buf, sizeof(buf));
buf[len] = '\0';
printf("Read %ld bytes from SSL connection: %s\n", len, buf);
printf("Read %zd bytes from SSL connection: %s\n", len, buf);
}
static void connect_cb(struct uloop_fd *f, unsigned int events) {