Группа :: Сети/Прочее
Пакет: uperf
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: uperf-1.0.5-alt-warnings.patch
Скачать
Скачать
diff --git a/uperf/src/parse.c b/uperf/src/parse.c
index f52a72d..2995430 100644
--- a/uperf/src/parse.c
+++ b/uperf/src/parse.c
@@ -276,13 +276,6 @@ parse(char *buffer, struct symbol *list)
return (0);
}
-static void
-print_symbols(struct symbol *list) {
- while (list) {
- printf("Print symbol: %s %d\n", list->symbol, list->type);
- list = list->next;
- }
-}
void
print_txn_t(txn_t *t)
{
@@ -329,13 +322,6 @@ print_group_t_recurse(group_t *t)
}
}
-static void
-print_workorder_t(workorder_t *w) {
- int i;
- for (i = 0; i < w->ngrp; i++)
- print_group_t_recurse(&w->grp[i]);
-}
-
static int
string2int(char *value)
{
diff --git a/uperf/src/ssl.c b/uperf/src/ssl.c
index 7076c17..d04366a 100644
--- a/uperf/src/ssl.c
+++ b/uperf/src/ssl.c
@@ -127,7 +127,6 @@ static int
file_present(char *file)
{
struct stat rbuf;
- int err;
if (stat(file, &rbuf) != 0) {
printf("stat:%s:%s\n", file, strerror(errno));
return (-1);
@@ -218,9 +217,7 @@ protocol_ssl_accept(protocol_t * p, void *options)
struct sockaddr_in remote;
socklen_t addrlen;
int ret;
- ssl_private_t *ssl_p = (ssl_private_t *) p->_protocol_p;
ssl_private_t *new_ssl_p;
- struct sockaddr name;
char hostname[128];
flowop_options_t *flowop_options = (flowop_options_t *) options;
BIO *sbio;
@@ -342,12 +339,7 @@ protocol_ssl_disconnect(protocol_t * p)
static int
protocol_ssl_read(protocol_t * p, void *buffer, int size, void *options)
{
- int i;
- int bufsize = size * 10;
- int status = 1;
ssl_private_t *ssl_p = (ssl_private_t *) p->_protocol_p;
- char *host = p->host[0] == '\0' ? p->host : "Unknown";
- flowop_options_t *flowop_options = (flowop_options_t *) options;
uperf_debug("ssl - Reading %d bytes from %s:%d\n", size, host,
p->port);
@@ -359,11 +351,6 @@ static int
protocol_ssl_write(protocol_t * p, void *buffer, int size, void *options)
{
ssl_private_t *ssl_p = (ssl_private_t *) p->_protocol_p;
- char *host = p->host[0] == '\0' ? p->host : "Unknown";
- int status = 1;
- int i;
- int bufsize = size * 10;
- flowop_options_t *flowop_options = (flowop_options_t *) options;
uperf_debug("ssl - Writing %d bytes to %s:%d\n", size, host,
p->port);
@@ -492,8 +479,6 @@ protocol_ssl_create(char *host, int port)
void
ssl_fini(protocol_t * p)
{
- ssl_private_t *ssl_p = (ssl_private_t *) p->_protocol_p;
-
/* free(ssl_p); */
if (!p) {
return;
diff --git a/uperf/src/udp.c b/uperf/src/udp.c
index c127ccd..3da6798 100644
--- a/uperf/src/udp.c
+++ b/uperf/src/udp.c
@@ -231,7 +231,6 @@ protocol_udp_listen(protocol_t *p, void *options)
{
udp_private_data *pd = (udp_private_data *)p->_protocol_p;
socklen_t len;
- char hostname[NI_MAXHOST];
char msg[128];
if ((pd->sock = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) {