add ANSI C prototypes
[unix-history] / usr / src / include / ttyent.h
index 3da3f4b..3923f81 100644 (file)
@@ -14,7 +14,7 @@
  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
- *     @(#)ttyent.h    5.2 (Berkeley) %G%
+ *     @(#)ttyent.h    5.3 (Berkeley) %G%
  */
 
 #define        _PATH_TTYS      "/etc/ttys"
  */
 
 #define        _PATH_TTYS      "/etc/ttys"
@@ -35,4 +35,14 @@ struct ttyent {
        char    *ty_comment;    /* comment field */
 };
 
        char    *ty_comment;    /* comment field */
 };
 
-extern struct ttyent *getttyent(), *getttynam();
+#ifdef __STDC__
+extern struct ttyent *getttyent(void);
+extern struct ttyent *getttynam(const char *);
+extern int setttyent(void);
+extern int endttyent(void);
+#else
+extern struct ttyent *getttyent();
+extern struct ttyent *getttynam();
+extern int setttyent();
+extern int endttyent();
+#endif