projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert sizeof foo to sizeof(foo).
[tinc]
/
src
/
sptps_speed.c
diff --git
a/src/sptps_speed.c
b/src/sptps_speed.c
index
bde3d69
..
ef97be7
100644
(file)
--- a/
src/sptps_speed.c
+++ b/
src/sptps_speed.c
@@
-49,7
+49,7
@@
static bool receive_record(void *handle, uint8_t type, const void *data, uint16_
static void receive_data(sptps_t *sptps) {
char buf[4096], *bufp = buf;
int fd = *(int *)sptps->handle;
static void receive_data(sptps_t *sptps) {
char buf[4096], *bufp = buf;
int fd = *(int *)sptps->handle;
- size_t len = recv(fd, buf, sizeof
buf
, 0);
+ size_t len = recv(fd, buf, sizeof
(buf)
, 0);
while(len) {
size_t done = sptps_receive_data(sptps, bufp, len);
if(!done)
while(len) {
size_t done = sptps_receive_data(sptps, bufp, len);
if(!done)
@@
-89,9
+89,9
@@
int main(int argc, char *argv[]) {
crypto_init();
crypto_init();
- randomize(buf1, sizeof
buf1
);
- randomize(buf2, sizeof
buf2
);
- randomize(buf3, sizeof
buf3
);
+ randomize(buf1, sizeof
(buf1)
);
+ randomize(buf2, sizeof
(buf2)
);
+ randomize(buf3, sizeof
(buf3)
);
// Key generation
// Key generation