Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/inetd inetd: fix Clang build



details:   https://anonhg.NetBSD.org/src/rev/14f2ef634d69
branches:  trunk
changeset: 985605:14f2ef634d69
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Aug 31 19:34:42 2021 +0000

description:
inetd: fix Clang build

error: implicit conversion changes signedness: 'service_type' to 'int'

diffstat:

 usr.sbin/inetd/inetd.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f9a4b89fe026 -r 14f2ef634d69 usr.sbin/inetd/inetd.c
--- a/usr.sbin/inetd/inetd.c    Tue Aug 31 19:26:23 2021 +0000
+++ b/usr.sbin/inetd/inetd.c    Tue Aug 31 19:34:42 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: inetd.c,v 1.131 2021/08/30 18:21:11 rillig Exp $       */
+/*     $NetBSD: inetd.c,v 1.132 2021/08/31 19:34:42 rillig Exp $       */
 
 /*-
  * Copyright (c) 1998, 2003 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
 #if 0
 static char sccsid[] = "@(#)inetd.c    8.4 (Berkeley) 4/13/94";
 #else
-__RCSID("$NetBSD: inetd.c,v 1.131 2021/08/30 18:21:11 rillig Exp $");
+__RCSID("$NetBSD: inetd.c,v 1.132 2021/08/31 19:34:42 rillig Exp $");
 #endif
 #endif /* not lint */
 
@@ -760,7 +760,7 @@
 #ifdef IPSEC
                        SWAP(char *, sep->se_policy, cp->se_policy);
 #endif
-                       SWAP(int, cp->se_type, sep->se_type);
+                       SWAP(service_type, cp->se_type, sep->se_type);
                        SWAP(size_t, cp->se_service_max, sep->se_service_max);
                        SWAP(size_t, cp->se_ip_max, sep->se_ip_max);
 #undef SWAP



Home | Main Index | Thread Index | Old Index