summaryrefslogtreecommitdiffstats
path: root/lib/libutil
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2002-02-17 19:42:18 +0000
committermillert <millert@openbsd.org>2002-02-17 19:42:18 +0000
commitf3c3a9c6dfeacc6897a86575161336d2a48e6df1 (patch)
treed14445e214d1b0db31b5a8d6f8b1f2938a91057e /lib/libutil
parentDocument that both localhost and the local hostname needs to be able to (diff)
downloadwireguard-openbsd-f3c3a9c6dfeacc6897a86575161336d2a48e6df1.tar.xz
wireguard-openbsd-f3c3a9c6dfeacc6897a86575161336d2a48e6df1.zip
Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)
Diffstat (limited to 'lib/libutil')
-rw-r--r--lib/libutil/scsi.h31
-rw-r--r--lib/libutil/util.h10
2 files changed, 19 insertions, 22 deletions
diff --git a/lib/libutil/scsi.h b/lib/libutil/scsi.h
index 08b8a9b9b48..3551ce54eee 100644
--- a/lib/libutil/scsi.h
+++ b/lib/libutil/scsi.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi.h,v 1.2 2002/02/16 21:27:29 millert Exp $ */
+/* $OpenBSD: scsi.h,v 1.3 2002/02/17 19:42:26 millert Exp $ */
/* Copyright (c) 1994 HD Associates (hd@world.std.com)
* All rights reserved.
@@ -54,26 +54,23 @@ scsireq_t *scsireq_reset(scsireq_t *);
scsireq_t *scsireq_new(void);
int scsireq_buff_decode(u_char *, size_t, char *, ...);
-int scsireq_buff_decode_visit __P((u_char *, size_t, char *,
-void (*a)(void *, int, void *, int, char *), void *));
+int scsireq_buff_decode_visit(u_char *, size_t, char *,
+ void (*a)(void *, int, void *, int, char *), void *);
int scsireq_decode(scsireq_t *, char *, ...);
-int scsireq_decode_visit __P((scsireq_t *, char *,
-void (*) (void *, int, void *, int, char *), void *));
+int scsireq_decode_visit(scsireq_t *, char *,
+ void (*)(void *, int, void *, int, char *), void *);
int scsireq_encode(scsireq_t *, char *, ...);
-int scsireq_encode_visit __P((scsireq_t *, char *,
- int (*)(void *, char *), void *));
-int scsireq_buff_encode_visit __P((u_char *, size_t, char *,
- int (*)(void *, char *), void *));
-
-scsireq_t *scsireq_build __P((scsireq_t *,
- u_long, caddr_t, u_long,
- char *, ...));
-
-scsireq_t *scsireq_build_visit __P((scsireq_t *,
- u_long, caddr_t, u_long, char *,
- int (*)(void *, char *), void *));
+int scsireq_encode_visit(scsireq_t *, char *,
+ int (*)(void *, char *), void *);
+int scsireq_buff_encode_visit(u_char *, size_t, char *,
+ int (*)(void *, char *), void *);
+
+scsireq_t *scsireq_build(scsireq_t *, u_long, caddr_t, u_long, char *, ...);
+
+scsireq_t *scsireq_build_visit(scsireq_t *, u_long, caddr_t, u_long, char *,
+ int (*)(void *, char *), void *);
int scsireq_enter(int, scsireq_t *);
diff --git a/lib/libutil/util.h b/lib/libutil/util.h
index 33bf13560a9..dee86c93f15 100644
--- a/lib/libutil/util.h
+++ b/lib/libutil/util.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.h,v 1.19 2002/02/16 21:27:29 millert Exp $ */
+/* $OpenBSD: util.h,v 1.20 2002/02/17 19:42:26 millert Exp $ */
/* $NetBSD: util.h,v 1.2 1996/05/16 07:00:22 thorpej Exp $ */
/*-
@@ -100,10 +100,10 @@ void pw_copy(int, int, struct passwd *);
void pw_getconf(char *, size_t, const char *, const char *);
int pw_scan(char *, struct passwd *, int *);
void pw_error(const char *, int, int);
-int openpty __P((int *, int *, char *, struct termios *,
- struct winsize *));
-int opendisk __P((const char *path, int flags, char *buf, size_t buflen,
- int iscooked));
+int openpty(int *, int *, char *, struct termios *,
+ struct winsize *);
+int opendisk(const char *path, int flags, char *buf, size_t buflen,
+ int iscooked);
pid_t forkpty(int *, char *, struct termios *, struct winsize *);
int getmaxpartitions(void);
int getrawpartition(void);