Index | Thread | Search

From:
Bryan Steele <brynet@openbsd.org>
Subject:
fix swapctl(2) prototype in unistd.h
To:
tech@openbsd.org
Date:
Sun, 5 Oct 2025 16:17:16 -0400

Download raw body.

Thread
This removes the variable names from the swapctl(2) prototype,
fixes git build of the asm6809[0] assembler.

ok?

-Bryan.

[0] https://www.6809.org.uk/asm6809/

Index: unistd.h
===================================================================
RCS file: /cvs/src/include/unistd.h,v
diff -u -p -u -r1.111 unistd.h
--- include/unistd.h	2 Aug 2024 22:14:54 -0000	1.111
+++ include/unistd.h	5 Oct 2025 20:10:55 -0000
@@ -530,7 +530,7 @@ int	 setpgrp(pid_t _pid, pid_t _pgrp);	/
 int	 setthrname(pid_t, const char *);
 void	 setusershell(void);
 int	 strtofflags(char **, u_int32_t *, u_int32_t *);
-int	 swapctl(int cmd, const void *arg, int misc);
+int	 swapctl(int, const void *, int);
 int	 pledge(const char *, const char *);
 int	 unveil(const char *, const char *);
 pid_t	 __tfork_thread(const struct __tfork *, size_t, void (*)(void *),