mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
vis: relocate _DIAGASSERT() define
Other similar files from NetBSD define it unconditionally as a local diff. Reviewed by: imp (as part of D42686) (cherry picked from commit db94e7c3f9a2344958667e756015393ad3124b3e)
This commit is contained in:
parent
3ad2fd6fb1
commit
0f6bc5ca95
1 changed files with 2 additions and 1 deletions
|
|
@ -61,7 +61,6 @@ __RCSID("$NetBSD: vis.c,v 1.83 2023/08/12 12:48:52 riastradh Exp $");
|
|||
#endif /* LIBC_SCCS and not lint */
|
||||
#ifdef __FBSDID
|
||||
__FBSDID("$FreeBSD$");
|
||||
#define _DIAGASSERT(x) assert(x)
|
||||
#endif
|
||||
|
||||
#include "namespace.h"
|
||||
|
|
@ -86,6 +85,8 @@ __weak_alias(strvisx,_strvisx)
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#define _DIAGASSERT(x) assert(x)
|
||||
|
||||
/*
|
||||
* The reason for going through the trouble to deal with character encodings
|
||||
* in vis(3), is that we use this to safe encode output of commands. This
|
||||
|
|
|
|||
Loading…
Reference in a new issue