Fix warning: ‘struct sockaddr’ declared inside…
authorRicardo Mones <ricardo@mones.org>
Sun, 6 May 2018 09:37:44 +0000 (11:37 +0200)
committerRicardo Mones <ricardo@mones.org>
Sun, 6 May 2018 09:37:44 +0000 (11:37 +0200)
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);
                                               ^~~~~~~~

src/procmsg.c
src/procmsg.h

index 3137f5fc8b2a9758f1a25f171e507055dd278ba1..3e989dd95ad2e1a13c7985cd47dbb6644c60c0c8 100644 (file)
@@ -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"
index 0f46515747133c2d9557891ee6369e98d8f85d1f..d1cb4795b92859e4a8633fea1f347d4ab17e76b5 100644 (file)
@@ -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)