summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2012-07-09 14:26:41 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2012-07-09 14:26:41 +0000
commitfabe5d27be51b7d5fc58307808d7203fa75bdb34 (patch)
tree5b61ff3426d4ed7f344f04e003a106af304c6904
parentf996687abc85710d80fd98ff39d29ab539f5708e (diff)
ANSIfy forkpty, add missing $OpenBSD$ in duid.c, style (no arg names) in
util.h. ok guenther
-rw-r--r--lib/libutil/duid.c2
-rw-r--r--lib/libutil/pty.c8
-rw-r--r--lib/libutil/util.h19
3 files changed, 13 insertions, 16 deletions
diff --git a/lib/libutil/duid.c b/lib/libutil/duid.c
index 3e57ab318b5..06d74af44b8 100644
--- a/lib/libutil/duid.c
+++ b/lib/libutil/duid.c
@@ -1,3 +1,5 @@
+/* $OpenBSD: duid.c,v 1.2 2012/07/09 14:26:40 nicm Exp $ */
+
/*
* Copyright (c) 2010 Joel Sing <jsing@openbsd.org>
*
diff --git a/lib/libutil/pty.c b/lib/libutil/pty.c
index ba9ce099db5..86fddb1f331 100644
--- a/lib/libutil/pty.c
+++ b/lib/libutil/pty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pty.c,v 1.16 2012/04/26 05:55:36 matthew Exp $ */
+/* $OpenBSD: pty.c,v 1.17 2012/07/09 14:26:40 nicm Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -81,11 +81,7 @@ openpty(int *amaster, int *aslave, char *name, struct termios *termp,
}
pid_t
-forkpty(amaster, name, termp, winp)
- int *amaster;
- char *name;
- struct termios *termp;
- struct winsize *winp;
+forkpty(int *amaster, char *name, struct termios *termp, struct winsize *winp)
{
int master, slave;
pid_t pid;
diff --git a/lib/libutil/util.h b/lib/libutil/util.h
index 35bc6be96d8..26c87a8fb86 100644
--- a/lib/libutil/util.h
+++ b/lib/libutil/util.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.h,v 1.29 2010/12/17 19:35:34 millert Exp $ */
+/* $OpenBSD: util.h,v 1.30 2012/07/09 14:26:40 nicm Exp $ */
/* $NetBSD: util.h,v 1.2 1996/05/16 07:00:22 thorpej Exp $ */
/*-
@@ -90,7 +90,7 @@ int opendev(const char *, int, int, char **);
int pidfile(const char *);
void pw_setdir(const char *);
char *pw_file(const char *);
-int pw_lock(int retries);
+int pw_lock(int);
int pw_mkdb(char *, int);
int pw_abort(void);
void pw_init(void);
@@ -100,20 +100,19 @@ void pw_copy(int, int, const struct passwd *, const struct passwd *);
int pw_scan(char *, struct passwd *, int *);
void pw_error(const char *, int, int);
int openpty(int *, int *, char *, struct termios *, struct winsize *);
-int opendisk(const char *path, int flags, char *buf, size_t buflen,
- int iscooked);
+int opendisk(const char *, int, char *, size_t, int);
pid_t forkpty(int *, char *, struct termios *, struct winsize *);
int getmaxpartitions(void);
int getrawpartition(void);
void login_fbtab(const char *, uid_t, gid_t);
int login_check_expire(struct __sFILE *, struct passwd *, char *, int);
char *readlabelfs(char *, int);
-const char *uu_lockerr(int _uu_lockresult);
-int uu_lock(const char *_ttyname);
-int uu_lock_txfr(const char *_ttyname, pid_t _pid);
-int uu_unlock(const char *_ttyname);
-int fmt_scaled(long long number, char *result);
-int scan_scaled(char *scaled, long long *result);
+const char *uu_lockerr(int);
+int uu_lock(const char *);
+int uu_lock_txfr(const char *, pid_t);
+int uu_unlock(const char *);
+int fmt_scaled(long long, char *);
+int scan_scaled(char *, long long *);
int isduid(const char *, int);
__END_DECLS