summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2012-03-02 11:23:51 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2012-03-02 11:23:51 +0000
commit82f4db0d10a42bc74594fa74f73bb575e7801631 (patch)
treecd0e216761cf5e25987c5894f71ea6b96e6576c1
parentb801118fe59d2aec2df8c6b556827e129e64afb5 (diff)
ANSIfy function prototypes, from Tim Ruehsen.
-rw-r--r--compat/fgetln.c4
-rw-r--r--compat/getopt.c5
2 files changed, 2 insertions, 7 deletions
diff --git a/compat/fgetln.c b/compat/fgetln.c
index 27bc01b6..08ddc840 100644
--- a/compat/fgetln.c
+++ b/compat/fgetln.c
@@ -43,9 +43,7 @@
#include "tmux.h"
char *
-fgetln(fp, len)
- FILE *fp;
- size_t *len;
+fgetln(FILE *fp, size_t *len)
{
static char *buf = NULL;
static size_t bufsiz = 0;
diff --git a/compat/getopt.c b/compat/getopt.c
index f6ecb588..3a532372 100644
--- a/compat/getopt.c
+++ b/compat/getopt.c
@@ -52,10 +52,7 @@ char *BSDoptarg; /* argument associated with option */
* Parse argc/argv argument vector.
*/
int
-BSDgetopt(nargc, nargv, ostr)
- int nargc;
- char * const *nargv;
- const char *ostr;
+BSDgetopt(int nargc, char *const *nargv, const char *ostr)
{
static char *place = EMSG; /* option letter processing */
char *oli; /* option letter list index */