netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jan Engelhardt <jengelh@medozas.de>
To: sam@synack.fr
Cc: netfilter-devel@vger.kernel.org
Subject: [PATCH 2/3] build: resolve compiler warnings
Date: Mon,  3 Oct 2011 22:10:08 +0200	[thread overview]
Message-ID: <1317672610-29855-3-git-send-email-jengelh@medozas.de> (raw)
In-Reply-To: <1317672610-29855-1-git-send-email-jengelh@medozas.de>

utils.c: In function 'get_taskname':
utils.c:62:2: warning: implicit declaration of function
	'read' [-Wimplicit-function-declaration]
utils.c:63:2: warning: implicit declaration of function
	'close' [-Wimplicit-function-declaration]
snet.c: In function 'snet_get':
snet.c:607:1: warning: control reaches end of non-void
	function [-Wreturn-type]
snet_lib.c: In function 'snet_destroy':
snet_lib.c:63:1: warning: control reaches end of non-void
	function [-Wreturn-type]
---
 snet.c     |    1 +
 snet_lib.c |    1 +
 utils.c    |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/snet.c b/snet.c
index 3d94846..ff5267a 100644
--- a/snet.c
+++ b/snet.c
@@ -604,6 +604,7 @@ int snet_get(struct nl_handle *nl_handle)
 		return -1;
 	}
 	snet_dbg(fout, 1, "exiting\n");
+	return 0;
 }
 
 int snet_verdict_delay(struct nl_handle *nl_handle, int family,
diff --git a/snet_lib.c b/snet_lib.c
index 0a2390e..97fd44c 100644
--- a/snet_lib.c
+++ b/snet_lib.c
@@ -60,4 +60,5 @@ int snet_destroy(struct snet_lib *sl)
 
 	nl_close(sl->snet_sock);
 	nl_handle_destroy(sl->snet_sock);
+	return 0;
 }
diff --git a/utils.c b/utils.c
index 51b029a..87572f6 100644
--- a/utils.c
+++ b/utils.c
@@ -2,6 +2,7 @@
 #include <utils.h>
 #include <snet.h>
 #include <fcntl.h>
+#include <unistd.h>
 
 const char *snet_syscall_name(const __u8 syscall)
 {
-- 
1.7.3.4


  parent reply	other threads:[~2011-10-03 20:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-03 20:10 libsnet: build sys Jan Engelhardt
2011-10-03 20:10 ` [PATCH 1/3] build: provide buildsys with automake and pkgconfig Jan Engelhardt
2011-10-03 20:10 ` Jan Engelhardt [this message]
2011-10-03 20:10 ` [PATCH 3/3] src: put include files into their own directory Jan Engelhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1317672610-29855-3-git-send-email-jengelh@medozas.de \
    --to=jengelh@medozas.de \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=sam@synack.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).