Commit f22e42df authored by Peter Pentchev's avatar Peter Pentchev

Fix some more signedness and unused value warnings

parent 60f52def
......@@ -380,10 +380,10 @@ tio_unmap(map, from, special_f)
tio_maplist(map)
int map;
{
int n, k;
unsigned n, k;
struct map_s *i;
char **from, **to, **list;
int from_maxwidth;
size_t from_maxwidth;
for (i = map_first[map], n = 0; i; i = i->next, ++n);
if (!n) {
......
......@@ -377,7 +377,7 @@ s_option_value_list()
{
struct option_s *i;
char **list;
int n, option_maxlen = 0;
size_t n, option_maxlen = 0;
for (i = option_first, n = 0; i; i = i->next, ++n)
if (strlen(i->option) > option_maxlen) option_maxlen = strlen(i->option);
......
......@@ -69,7 +69,7 @@ volatile int caught_sigint;
#ifdef SIGINT
static sigtype_t
sigint_handler(int sig)
sigint_handler(int sig __unused)
{
signal(SIGINT, sigint_handler);
caught_sigint = 1;
......@@ -80,7 +80,7 @@ sigint_handler(int sig)
#ifdef SIGTSTP
static sigtype_t
sigtstp_handler(int sig)
sigtstp_handler(int sig __unused)
{
signal(SIGTSTP, sigtstp_handler);
tio_suspend();
......@@ -97,7 +97,7 @@ sigtstp_handler(int sig)
#ifdef SIGCONT
static sigtype_t
sigcont_handler(int sig)
sigcont_handler(int sig __unused)
{
signal(SIGCONT, sigcont_handler);
tio_restart();
......@@ -109,7 +109,7 @@ sigcont_handler(int sig)
#ifdef SIGPIPE
static sigtype_t
sigpipe_handler(int sig)
sigpipe_handler(int sig __unused)
{
signal(SIGPIPE, sigpipe_handler);
#if 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment