summaryrefslogtreecommitdiffstats
path: root/lib/libutil
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-05-19 10:04:15 +0000
committerpeter <peter@FreeBSD.org>1997-05-19 10:04:15 +0000
commitf798c2037e98bc3f86e64431e895ef0281310ee5 (patch)
treeacc22a460e076d8b9c4fb77c381547b267e7ab6a /lib/libutil
parenteca8c2300f1cee399e1067babe0cd5c755a6b17d (diff)
downloadFreeBSD-src-f798c2037e98bc3f86e64431e895ef0281310ee5.zip
FreeBSD-src-f798c2037e98bc3f86e64431e895ef0281310ee5.tar.gz
Now I really understand the reason for the style.9 rule about not having
visible type names in prototypes in user space headers. libutil.h generates warnings with -Wall over the use of "const char *ttyname". It's lucky it wasn't a #define conflict. Is a single '_' prefix acceptable? or does it need to be two?
Diffstat (limited to 'lib/libutil')
-rw-r--r--lib/libutil/libutil.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h
index 50c7c66..5404a1f 100644
--- a/lib/libutil/libutil.h
+++ b/lib/libutil/libutil.h
@@ -18,7 +18,7 @@
* 5. Modifications may be freely made to this file providing the above
* conditions are met.
*
- * $Id: libutil.h,v 1.7 1997/05/10 18:55:37 davidn Exp $
+ * $Id: libutil.h,v 1.8 1997/05/12 10:36:13 brian Exp $
*/
#ifndef _LIBUTIL_H_
@@ -32,19 +32,19 @@ struct winsize;
struct utmp;
__BEGIN_DECLS
-void setproctitle __P((const char *fmt, ...));
-void login __P((struct utmp *ut));
-int login_tty __P((int fd));
-int logout __P((char *line));
-void logwtmp __P((char *line, char *name, char *host));
-int openpty __P((int *amaster, int *aslave, char *name,
- struct termios *termp, struct winsize *winp));
-int forkpty __P((int *amaster, char *name,
- struct termios *termp, struct winsize *winp));
-const char *uu_lockerr __P((int uu_lockresult));
-int uu_lock __P((const char *ttyname));
-int uu_unlock __P((const char *ttyname));
-int _secure_path __P((const char *path, uid_t uid, gid_t gid));
+void setproctitle __P((const char *_fmt, ...));
+void login __P((struct utmp *_ut));
+int login_tty __P((int _fd));
+int logout __P((char *_line));
+void logwtmp __P((char *_line, char *_name, char *_host));
+int openpty __P((int *_amaster, int *_aslave, char *_name,
+ struct termios *_termp, struct winsize *_winp));
+int forkpty __P((int *_amaster, char *_name,
+ struct termios *_termp, struct winsize *_winp));
+const char *uu_lockerr __P((int _uu_lockresult));
+int uu_lock __P((const char *_ttyname));
+int uu_unlock __P((const char *_ttyname));
+int _secure_path __P((const char *_path, uid_t _uid, gid_t _gid));
__END_DECLS
#define UU_LOCK_INUSE (1)
OpenPOWER on IntegriCloud