Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions http.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

int get_HTTP_headers(int socket_h, SSL *ssl_h, char **headers, int *overflow, double timeout)
{
#if !HAVE_OPENSSL
(void)ssl_h;
#endif
char *term = NULL;
int len_in=0, len=4096;
char *buffer = (char *)malloc(len + 1);
Expand Down
1 change: 1 addition & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ volatile char got_sigquit = 0;

void handler_quit(int s)
{
(void)s;
signal(SIGQUIT, handler_quit);

got_sigquit = 1;
Expand Down
5 changes: 2 additions & 3 deletions nc.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ double calc_trend()
return (v1 - v2) / (v2 / 100.0);
}

void draw_graph(double val)
void draw_graph()
{
int index = 0, loop_n = min(max_x, history_n), n = 0, n2 = 0;
double avg = 0, sd = 0;
Expand Down Expand Up @@ -761,7 +761,6 @@ void show_stats_t(int y, int x, char *header, stats_t *data, char abbreviate)

void update_stats(stats_t *resolve, stats_t *connect, stats_t *request, stats_t *total, stats_t *ssl_setup, int n_ok, int n_fail, const char *last_connect_str, const char *fp, char use_tfo, char dg, stats_t *st_to, stats_t *tcp_rtt_stats, int re_tx, int pmtu, int tos, stats_t *close_st, stats_t *t_write, int n_cookies, char abbreviate, stats_t *stats_header_size)
{
double k = 0.0;
char force_redraw = 0;
struct pollfd p = { 0, POLLIN, 0 };

Expand Down Expand Up @@ -855,7 +854,7 @@ void update_stats(stats_t *resolve, stats_t *connect, stats_t *request, stats_t

if (dg && !pause_graphs)
{
draw_graph(k);
draw_graph();
#if HAVE_FFTW3
draw_fft();
#endif
Expand Down
3 changes: 3 additions & 0 deletions tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ int set_no_delay(int fd)

int create_socket(struct sockaddr *bind_to, struct addrinfo *ai, int recv_buffer_size, int tx_buffer_size, int max_mtu, char use_no_delay, int priority, int tos)
{
#ifndef linux
(void)priority;
#endif
int fd = -1;

/* create socket */
Expand Down
Loading