@@ -11,12 +11,12 @@ namespace {
1111
1212void TestUnpackAnnouncesList (Fuzz_Data &input)
1313{
14- CONSUME1_OR_RETURN (const uint8_t max_count, input);
14+ CONSUME1_OR_RETURN (const uint8_t , max_count, input);
1515 // Always allocate at least something to avoid passing nullptr to functions below.
1616 std::vector<GC_Announce> announces (max_count + 1 );
1717
1818 // TODO(iphydf): How do we know the packed size?
19- CONSUME1_OR_RETURN (const uint16_t packed_size, input);
19+ CONSUME1_OR_RETURN (const uint16_t , packed_size, input);
2020
2121 Logger *logger = logger_new ();
2222 if (gca_unpack_announces_list (logger, input.data , input.size , announces.data (), max_count)
@@ -35,7 +35,7 @@ void TestUnpackPublicAnnounce(Fuzz_Data &input)
3535 GC_Public_Announce public_announce;
3636
3737 // TODO(iphydf): How do we know the packed size?
38- CONSUME1_OR_RETURN (const uint16_t packed_size, input);
38+ CONSUME1_OR_RETURN (const uint16_t , packed_size, input);
3939
4040 Logger *logger = logger_new ();
4141 if (gca_unpack_public_announce (logger, input.data , input.size , &public_announce) != -1 ) {
@@ -61,11 +61,11 @@ void TestDoGca(Fuzz_Data &input)
6161 assert (gca != nullptr );
6262
6363 while (input.size > 0 ) {
64- CONSUME1_OR_RETURN (const uint8_t choice, input);
64+ CONSUME1_OR_RETURN (const uint8_t , choice, input);
6565 switch (choice) {
6666 case 0 : {
6767 // Add an announce.
68- CONSUME1_OR_RETURN (const uint16_t length, input);
68+ CONSUME1_OR_RETURN (const uint16_t , length, input);
6969 CONSUME_OR_RETURN (const uint8_t *data, input, length);
7070 GC_Public_Announce public_announce;
7171 if (gca_unpack_public_announce (logger.get (), data, length, &public_announce) != -1 ) {
@@ -75,15 +75,15 @@ void TestDoGca(Fuzz_Data &input)
7575 }
7676 case 1 : {
7777 // Advance the time by a number of tox_iteration_intervals.
78- CONSUME1_OR_RETURN (const uint8_t iterations, input);
78+ CONSUME1_OR_RETURN (const uint8_t , iterations, input);
7979 clock += iterations * 20 ;
8080 // Do an iteration.
8181 do_gca (mono_time.get (), gca.get ());
8282 break ;
8383 }
8484 case 2 : {
8585 // Get announces.
86- CONSUME1_OR_RETURN (const uint8_t max_nodes, input);
86+ CONSUME1_OR_RETURN (const uint8_t , max_nodes, input);
8787 std::vector<GC_Announce> gc_announces (max_nodes);
8888 CONSUME_OR_RETURN (const uint8_t *chat_id, input, CHAT_ID_SIZE );
8989 CONSUME_OR_RETURN (const uint8_t *except_public_key, input, ENC_PUBLIC_KEY_SIZE );
0 commit comments