From 670c1278165e3e5f22329b44bdfcd99be8af5a34 Mon Sep 17 00:00:00 2001 From: charnier Date: Sat, 3 Nov 2007 10:36:03 +0000 Subject: Add __unused to parameters when needed --- usr.sbin/faithd/faithd.c | 9 +++++---- usr.sbin/faithd/tcp.c | 11 ++++++----- 2 files changed, 11 insertions(+), 9 deletions(-) (limited to 'usr.sbin/faithd') diff --git a/usr.sbin/faithd/faithd.c b/usr.sbin/faithd/faithd.c index 3df90a5..2191f55 100644 --- a/usr.sbin/faithd/faithd.c +++ b/usr.sbin/faithd/faithd.c @@ -27,8 +27,6 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $FreeBSD$ */ /* @@ -38,6 +36,9 @@ * e.g. faithd telnet /usr/libexec/telnetd telnetd */ +#include +__FBSDID("$FreeBSD$"); + #include #include #include @@ -702,7 +703,7 @@ map6to4(struct sockaddr_in6 *dst6, struct sockaddr_in *dst4) static void -sig_child(int sig) +sig_child(int sig __unused) { int status; pid_t pid; @@ -714,7 +715,7 @@ sig_child(int sig) } void -sig_terminate(int sig) +sig_terminate(int sig __unused) { syslog(LOG_INFO, "Terminating faith daemon"); exit(EXIT_SUCCESS); diff --git a/usr.sbin/faithd/tcp.c b/usr.sbin/faithd/tcp.c index 714df9a..825ea35 100644 --- a/usr.sbin/faithd/tcp.c +++ b/usr.sbin/faithd/tcp.c @@ -27,10 +27,11 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * - * $FreeBSD$ */ +#include +__FBSDID("$FreeBSD$"); + #include #include #include @@ -77,7 +78,7 @@ static void relay __P((int, int, const char *, int)); * - parent side (ppid == 0) will check the last SIGUSR1 it have seen. */ static void -sig_ctimeout(int sig) +sig_ctimeout(int sig __unused) { /* parent side: record notification from the child */ if (dflag) @@ -87,7 +88,7 @@ sig_ctimeout(int sig) /* parent will terminate if child dies. */ static void -sig_child(int sig) +sig_child(int sig __unused) { int status; pid_t pid; @@ -148,7 +149,7 @@ notify_active() } static void -send_data(int s_rcv, int s_snd, const char *service, int direction) +send_data(int s_rcv, int s_snd, const char *service __unused, int direction) { int cc; -- cgit v1.1