talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 3034d055648a97be462a7b2f2f15584634037795
parent 5d4a02d11b05036b703bbd9fef4758bf60564f97
Author: Ricardo Mones <ricardo@mones.org>
Date:   Sun,  6 May 2018 11:37:44 +0200

Fix warning: ‘struct sockaddr’ declared inside…

By including our utils.h instead of spamassassin homonymous file.

In file included from ../../../src/procmsg.h:32:0,
                 from spamassassin.c:42:
./utils.h:124:47: warning: ‘struct sockaddr’ declared inside parameter list will not be visible outside of this definition or declaration
 int timeout_connect (int sockfd, const struct sockaddr *serv_addr, size_t addrlen);
                                               ^~~~~~~~

Diffstat:
Msrc/procmsg.c | 5++---
Msrc/procmsg.h | 7+++----
2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/procmsg.c b/src/procmsg.c @@ -1,6 +1,6 @@ /* - * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team + * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client + * Copyright (C) 1999-2018 Hiroyuki Yamamoto and the Claws Mail team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -14,7 +14,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * */ #include "defs.h" diff --git a/src/procmsg.h b/src/procmsg.h @@ -1,6 +1,6 @@ /* - * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team + * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client + * Copyright (C) 1999-2018 Hiroyuki Yamamoto and the Claws Mail team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -14,7 +14,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * */ #ifndef __PROCMSG_H__ @@ -29,7 +28,7 @@ #include <time.h> #include <sys/types.h> #include <string.h> -#include "utils.h" +#include "common/utils.h" #include "proctypes.h" #define MSG_NEW (1U << 0)