Comment out the "__attribute__((hot))" declarations because they cause

compiler warnings on older systems.  They probably didn't help
performance anyway. They'll remain in the source as markers.
This commit is contained in:
Jef Poskanzer 2013-02-18 14:56:37 -08:00
parent 3a34e7c11b
commit 231c56296e
5 changed files with 6 additions and 6 deletions

View File

@ -156,7 +156,7 @@ long get_tcpinfo_total_retransmits(struct iperf_interval_results *irp);
void print_tcpinfo(struct iperf_test *test);
void build_tcpinfo_message(struct iperf_interval_results *r, char *message);
int iperf_send(struct iperf_test *, fd_set *) __attribute__((hot));
int iperf_send(struct iperf_test *, fd_set *) /* __attribute__((hot)) */;
int iperf_recv(struct iperf_test *, fd_set *);
void sig_handler(int);
void usage();

View File

@ -35,7 +35,7 @@ int iperf_tcp_recv(struct iperf_stream *);
* returns: bytes sent
*
*/
int iperf_tcp_send(struct iperf_stream *) __attribute__((hot));
int iperf_tcp_send(struct iperf_stream *) /* __attribute__((hot)) */;
int iperf_tcp_listen(struct iperf_test *);

View File

@ -25,7 +25,7 @@ int iperf_udp_recv(struct iperf_stream *);
* returns: bytes sent
*
*/
int iperf_udp_send(struct iperf_stream *) __attribute__((hot));
int iperf_udp_send(struct iperf_stream *) /* __attribute__((hot)) */;
/**

View File

@ -12,7 +12,7 @@
int netdial(int, int, char *, char *, int);
int netannounce(int, int, char *, int);
int Nwrite(int, void *, int, int) __attribute__((hot));
int Nwrite(int, void *, int, int) /* __attribute__((hot)) */;
int Nread(int, void *, int, int);
int getsock_tcp_mss(int);
int set_tcp_options(int, int, int);

View File

@ -55,12 +55,12 @@ extern Timer* tmr_create(
** can just put the call to this routine right in your select(). Returns
** (struct timeval*) 0 if no timers are pending.
*/
extern struct timeval* tmr_timeout( struct timeval* nowP ) __attribute__((hot));
extern struct timeval* tmr_timeout( struct timeval* nowP ) /* __attribute__((hot)) */;
/* Run the list of timers. Your main program needs to call this every so often,
** or as indicated by tmr_timeout().
*/
extern void tmr_run( struct timeval* nowP ) __attribute__((hot));
extern void tmr_run( struct timeval* nowP ) /* __attribute__((hot)) */;
/* Reset the clock on a timer, to current time plus the original timeout. */
extern void tmr_reset( struct timeval* nowP, Timer* timer );