summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/atexit
diff options
context:
space:
mode:
authorbluhm <>2017-07-27 15:08:37 +0000
committerbluhm <>2017-07-27 15:08:37 +0000
commitdf100d999bc39b918f3da6af11f1fe9735b6dc08 (patch)
tree89e09dfbfdac2ef16a8ad344d3ff3c26ee183636 /src/regress/lib/libc/atexit
parent75268dd07edc0bae138d0f843c90e6c9cd700683 (diff)
downloadopenbsd-df100d999bc39b918f3da6af11f1fe9735b6dc08.tar.gz
openbsd-df100d999bc39b918f3da6af11f1fe9735b6dc08.tar.bz2
openbsd-df100d999bc39b918f3da6af11f1fe9735b6dc08.zip
Fix all clang warnings in libc regress and cleanup some make files.
Diffstat (limited to 'src/regress/lib/libc/atexit')
-rw-r--r--src/regress/lib/libc/atexit/Makefile13
-rw-r--r--src/regress/lib/libc/atexit/atexit_test.c5
2 files changed, 10 insertions, 8 deletions
diff --git a/src/regress/lib/libc/atexit/Makefile b/src/regress/lib/libc/atexit/Makefile
index 057844d767..eb8c55e91e 100644
--- a/src/regress/lib/libc/atexit/Makefile
+++ b/src/regress/lib/libc/atexit/Makefile
@@ -1,12 +1,11 @@
1# $OpenBSD: Makefile,v 1.6 2015/10/25 18:01:24 guenther Exp $ 1# $OpenBSD: Makefile,v 1.7 2017/07/27 15:08:37 bluhm Exp $
2 2
3NOMAN= 3PROG = atexit_test
4PROG=atexit_test 4CPPFLAGS = -I${.CURDIR}/../../../../lib/libc
5CPPFLAGS+=-I${.CURDIR}/../../../../lib/libc -D'PROTO_NORMAL(x)=__asm("")' 5CLEANFILES = invalid.out valid.out
6CLEANFILES+= invalid.out valid.out 6LDADD = -static
7LDADD=-static
8 7
9run-regress-atexit_test: ${PROG} 8run-regress-${PROG}: ${PROG}
10 ./${PROG} -valid 2>${.OBJDIR}/valid.out 9 ./${PROG} -valid 2>${.OBJDIR}/valid.out
11 cmp -s ${.OBJDIR}/valid.out ${.CURDIR}/valid.ok 10 cmp -s ${.OBJDIR}/valid.out ${.CURDIR}/valid.ok
12 ./${PROG} -invalid-atexit 2>${.OBJDIR}/invalid.out 11 ./${PROG} -invalid-atexit 2>${.OBJDIR}/invalid.out
diff --git a/src/regress/lib/libc/atexit/atexit_test.c b/src/regress/lib/libc/atexit/atexit_test.c
index e1ea82f827..b060a9b341 100644
--- a/src/regress/lib/libc/atexit/atexit_test.c
+++ b/src/regress/lib/libc/atexit/atexit_test.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: atexit_test.c,v 1.8 2015/10/25 04:11:00 guenther Exp $ */ 1/* $OpenBSD: atexit_test.c,v 1.9 2017/07/27 15:08:37 bluhm Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2002 Daniel Hartmeier 4 * Copyright (c) 2002 Daniel Hartmeier
@@ -39,6 +39,9 @@
39#include <string.h> 39#include <string.h>
40#include <signal.h> 40#include <signal.h>
41#include <unistd.h> 41#include <unistd.h>
42
43#include "include/namespace.h"
44#include "hidden/stdlib.h"
42#include "stdlib/atexit.h" 45#include "stdlib/atexit.h"
43 46
44void handle_first(void); 47void handle_first(void);