]> git.meshlink.io Git - meshlink/blobdiff - src/sptps_speed.c
Convert sizeof foo to sizeof(foo).
[meshlink] / src / sptps_speed.c
index 673efd252b080032af12cdfbf67c625ac7020cfd..e91fba6299b8b80f89c8a8fb83775035341043f6 100644 (file)
@@ -53,7 +53,7 @@ static bool receive_record(void *handle, uint8_t type, const void *data, uint16_
 static void receive_data(sptps_t *sptps) {
        char buf[4096];
        int fd = *(int *)sptps->handle;
-       size_t len = recv(fd, buf, sizeof buf, 0);
+       size_t len = recv(fd, buf, sizeof(buf), 0);
        if(!sptps_receive_data(sptps, buf, len))
                abort();
 }
@@ -88,9 +88,9 @@ int main(int argc, char *argv[]) {
 
        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