diff options
author | Peter Wemm <peter@FreeBSD.org> | 1997-05-19 10:04:15 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1997-05-19 10:04:15 +0000 |
commit | 33d828d376dc69485f51c74aa12d0972585de2be (patch) | |
tree | ac3e92f1f66d2a0382232f3b8844225d4a38916d /libutil | |
parent | 67b3b53f0bc8656573ec6da51b0cfe5258cb454d (diff) | |
download | pw-darwin-33d828d376dc69485f51c74aa12d0972585de2be.tar.gz pw-darwin-33d828d376dc69485f51c74aa12d0972585de2be.tar.zst pw-darwin-33d828d376dc69485f51c74aa12d0972585de2be.zip |
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 'libutil')
-rw-r--r-- | libutil/libutil.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/libutil/libutil.h b/libutil/libutil.h index 50c7c66..5404a1f 100644 --- a/libutil/libutil.h +++ b/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) |