summaryrefslogtreecommitdiff
path: root/src/pty.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-07-24 20:44:27 +0200
committerBram Moolenaar <Bram@vim.org>2010-07-24 20:44:27 +0200
commiteb80f04f6e59b958f8c97d19c92946a5014b896f (patch)
treeeaba301a19772ded13b8706181b12892604ea716 /src/pty.c
parent1b20d3d608c96125e72795c7eba657d3cf546935 (diff)
downloadvim-git-eb80f04f6e59b958f8c97d19c92946a5014b896f.tar.gz
Fix for compiler warning about function prototype in pty.c.
Diffstat (limited to 'src/pty.c')
-rw-r--r--src/pty.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pty.c b/src/pty.c
index c4c64d414..944eccfb9 100644
--- a/src/pty.c
+++ b/src/pty.c
@@ -278,8 +278,10 @@ OpenPTY(ttyn)
char **ttyn;
{
int f;
- char *m, *ptsname();
- int unlockpt __ARGS((int)), grantpt __ARGS((int));
+ char *m;
+ char *(ptsname __ARGS((int)));
+ int unlockpt __ARGS((int));
+ int grantpt __ARGS((int));
RETSIGTYPE (*sigcld)__ARGS(SIGPROTOARG);
/* used for opening a new pty-pair: */
static char TtyName[32];