1
0
forked from bip/bip

fixed compilation warnings

This commit is contained in:
guillot 2005-08-01 11:24:10 +00:00
parent 0e6af5bcf6
commit 9c7eba2f6a
5 changed files with 11 additions and 4 deletions

View File

@ -265,6 +265,7 @@ static void usage(char *name)
void reload_config(int i)
{
(void)i;
sighup = 1;
}
@ -490,7 +491,7 @@ static int add_user(list_t *data)
int r;
struct tuple *t;
struct c_user *u;
struct c_user *old_u;
struct c_user *old_u = 0;
u = calloc(sizeof(struct c_user), 1);
list_init(&u->connectionl, NULL);
@ -717,6 +718,7 @@ int fireup(FILE *conf)
void print_link(struct link *l)
{
(void)l;
printf("\n");
}

View File

@ -53,7 +53,7 @@ void readpass(char *buffer, int buflen)
close(ttyfd);
}
int main(int argc __attribute__((unused)), char **argv __attribute__((unused)))
int main(void)
{
int i;
static char str[256];

View File

@ -587,6 +587,7 @@ static int irc_cli_startup(struct link_client *ic, struct line *line,
char *initmask;
char *init_nick;
char *user, *pass, *connname;
(void)line;
if (!ic->init_pass)
fatal("internal irc_cli_startup");
@ -767,6 +768,8 @@ static int irc_cli_pass(struct link_client *ic, struct line *line, list_t *cl)
static int irc_cli_quit(struct link_client *ic, struct line *line)
{
(void)ic;
(void)line;
return OK_CLOSE;
}
@ -870,7 +873,7 @@ static int irc_cli_join(struct link_client *irc, struct line *line)
if (line->elemc != 2 && line->elemc != 3)
return ERR_PROTOCOL;
char *s, *e, *ks, *ke;
char *s, *e, *ks, *ke = 0;
s = line->elemv[1];
if (line->elemc == 3)
ks = line->elemv[2];

View File

@ -597,6 +597,7 @@ void log_connected(log_t *logdata)
void log_client_disconnected(log_t *logdata)
{
(void)logdata;
mylog(LOG_DEBUG, "A client disconnected");
}
@ -627,6 +628,7 @@ void log_client_connected(log_t *logdata)
void log_advance_backlogs(log_t* ld, logfilegroup_t *lfg)
{
int c;
(void)ld;
if (!conf_backlog || conf_backlog_lines == 0)
return;

View File

@ -288,7 +288,7 @@ void *list_remove_if_exists(list_t *list, void *ptr)
{
list_iterator_t li;
int debug = 0;
void *ret;
void *ret = 0;
if (!list->cmp)
fatal("list_remove: list does not have a cmp function\n");