diff options
author | 2014-06-04 20:13:49 +0000 | |
---|---|---|
committer | 2014-06-04 20:13:49 +0000 | |
commit | b67c48e940b887f6c77a30e56c0fa110ba2a355b (patch) | |
tree | c57c5e1dd7e715270676aa1ccfe998023dab7c93 /lib/libc/arch/sparc | |
parent | Fix a leak that can occur when len == 0, and as a result we leak a \0 byte. (diff) | |
download | wireguard-openbsd-b67c48e940b887f6c77a30e56c0fa110ba2a355b.tar.xz wireguard-openbsd-b67c48e940b887f6c77a30e56c0fa110ba2a355b.zip |
Apply "unifdef -D__STDC__" to libc/arch/*/SYS.h
A while back, pascal@ converted our system call stubs from using "cpp
| as" to "cc -x assembler-with-cpp", so there's no need to stay
compatible with ancient preprocessor semantics.
ok miod
Diffstat (limited to 'lib/libc/arch/sparc')
-rw-r--r-- | lib/libc/arch/sparc/SYS.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libc/arch/sparc/SYS.h b/lib/libc/arch/sparc/SYS.h index d44e0797fe4..f010285062d 100644 --- a/lib/libc/arch/sparc/SYS.h +++ b/lib/libc/arch/sparc/SYS.h @@ -30,18 +30,14 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $OpenBSD: SYS.h,v 1.15 2012/09/04 19:08:13 deraadt Exp $ + * $OpenBSD: SYS.h,v 1.16 2014/06/04 20:13:49 matthew Exp $ */ #include <machine/asm.h> #include <sys/syscall.h> #include <machine/trap.h> -#ifdef __STDC__ #define _CAT(x,y) x##y -#else -#define _CAT(x,y) x/**/y -#endif #define __ENTRY(p,x) ENTRY(_CAT(p,x)) ; .weak x ; x = _CAT(p,x) |