Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/lint1 lint: replace comment in new_style_funct...
details: https://anonhg.NetBSD.org/src/rev/1fe21af11e5d
branches: trunk
changeset: 1023539:1fe21af11e5d
user: rillig <rillig%NetBSD.org@localhost>
date: Mon Sep 13 05:25:27 2021 +0000
description:
lint: replace comment in new_style_function with equivalent code
No functional change.
diffstat:
usr.bin/xlint/lint1/decl.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 2149f75dd108 -r 1fe21af11e5d usr.bin/xlint/lint1/decl.c
--- a/usr.bin/xlint/lint1/decl.c Mon Sep 13 05:21:30 2021 +0000
+++ b/usr.bin/xlint/lint1/decl.c Mon Sep 13 05:25:27 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: decl.c,v 1.238 2021/09/13 05:21:30 rillig Exp $ */
+/* $NetBSD: decl.c,v 1.239 2021/09/13 05:25:27 rillig Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: decl.c,v 1.238 2021/09/13 05:21:30 rillig Exp $");
+__RCSID("$NetBSD: decl.c,v 1.239 2021/09/13 05:25:27 rillig Exp $");
#endif
#include <sys/param.h>
@@ -1453,8 +1453,9 @@
}
}
- /* return NULL if first param is VOID */
- return args != NULL && args->s_type->t_tspec != VOID ? args : NULL;
+ if (args == NULL || args->s_type->t_tspec == VOID)
+ return NULL;
+ return args;
}
/*
Home |
Main Index |
Thread Index |
Old Index