Source-Changes-HG archive

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

[src/trunk]: src/crypto/dist/ipsec-tools/src/racoon ipsectools: fix lint error



details:   https://anonhg.NetBSD.org/src/rev/e32f04085418
branches:  trunk
changeset: 986239:e32f04085418
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Sep 14 21:49:31 2021 +0000

description:
ipsectools: fix lint error

Returning a value from a void function is a GNU extension, but even in
GNU mode, lint does not allow these.

No functional change.

diffstat:

 crypto/dist/ipsec-tools/src/racoon/privsep.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r c10e34f32efe -r e32f04085418 crypto/dist/ipsec-tools/src/racoon/privsep.c
--- a/crypto/dist/ipsec-tools/src/racoon/privsep.c      Tue Sep 14 21:45:20 2021 +0000
+++ b/crypto/dist/ipsec-tools/src/racoon/privsep.c      Tue Sep 14 21:49:31 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: privsep.c,v 1.25 2018/08/28 09:10:28 christos Exp $    */
+/*     $NetBSD: privsep.c,v 1.26 2021/09/14 21:49:31 rillig Exp $      */
 
 /* Id: privsep.c,v 1.15 2005/08/08 11:23:44 vanhu Exp */
 
@@ -1762,8 +1762,10 @@
        size_t len;
        char *data;
 
-       if (geteuid() == 0)
-               return cleanup_pam(port);
+       if (geteuid() == 0) {
+               cleanup_pam(port);
+               return;
+       }
 
        len = sizeof(*msg) 
            + sizeof(port)



Home | Main Index | Thread Index | Old Index