summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch/sparc
diff options
context:
space:
mode:
authormatthew <matthew@openbsd.org>2014-06-04 20:13:49 +0000
committermatthew <matthew@openbsd.org>2014-06-04 20:13:49 +0000
commitb67c48e940b887f6c77a30e56c0fa110ba2a355b (patch)
treec57c5e1dd7e715270676aa1ccfe998023dab7c93 /lib/libc/arch/sparc
parentFix a leak that can occur when len == 0, and as a result we leak a \0 byte. (diff)
downloadwireguard-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.h6
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)