Fix buffer here too

This commit is contained in:
Quentin Dufour 2019-03-06 17:12:58 +01:00
parent b6e31d7bdc
commit c54304134b
2 changed files with 2 additions and 0 deletions

View file

@ -202,6 +202,7 @@ void register_timer(struct evt_core_ctx* evts, int udp, int interval, int count,
}
int main(int argc, char** argv) {
setvbuf(stdout, NULL, _IONBF, 0);
printf("~ measlat ~\n");
int opt, udp_fd, count = 0, size = 0, interval = 0;

View file

@ -30,6 +30,7 @@ int on_udp(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo) {
}
int main(int argc, char** argv) {
setvbuf(stdout, NULL, _IONBF, 0);
printf("~ udpecho ~\n");
int opt, udp_sock, verbose = 0;