summaryrefslogtreecommitdiffstats
path: root/contrib/tcsh/tc.disc.c
diff options
context:
space:
mode:
authormp <mp@FreeBSD.org>2005-04-24 19:41:08 +0000
committermp <mp@FreeBSD.org>2005-04-24 19:41:08 +0000
commit94a109bd814074f290affa8f7698847719d55833 (patch)
tree6daeb0464a7bc8705c0246b7fd98e212b6beed09 /contrib/tcsh/tc.disc.c
parentbbd1addf8f9452690ad13ce5b875ee4cc9633958 (diff)
downloadFreeBSD-src-94a109bd814074f290affa8f7698847719d55833.zip
FreeBSD-src-94a109bd814074f290affa8f7698847719d55833.tar.gz
Import of tcsh-6.14.00
Diffstat (limited to 'contrib/tcsh/tc.disc.c')
-rw-r--r--contrib/tcsh/tc.disc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/contrib/tcsh/tc.disc.c b/contrib/tcsh/tc.disc.c
index 86d3369..32d30a4 100644
--- a/contrib/tcsh/tc.disc.c
+++ b/contrib/tcsh/tc.disc.c
@@ -1,4 +1,4 @@
-/* $Header: /src/pub/tcsh/tc.disc.c,v 3.13 2002/07/06 22:28:13 christos Exp $ */
+/* $Header: /src/pub/tcsh/tc.disc.c,v 3.15 2004/11/23 02:10:49 christos Exp $ */
/*
* tc.disc.c: Functions to set/clear line disciplines
*
@@ -33,7 +33,7 @@
*/
#include "sh.h"
-RCSID("$Id: tc.disc.c,v 3.13 2002/07/06 22:28:13 christos Exp $")
+RCSID("$Id: tc.disc.c,v 3.15 2004/11/23 02:10:49 christos Exp $")
#ifdef OREO
#include <compat.h>
@@ -41,7 +41,7 @@ RCSID("$Id: tc.disc.c,v 3.13 2002/07/06 22:28:13 christos Exp $")
#include "ed.h"
-static bool add_discipline = 0; /* Did we add a line discipline */
+static int add_discipline = 0; /* Did we add a line discipline */
#if defined(IRIS4D) || defined(OREO) || defined(sonyrisc)
# define HAVE_DISC
@@ -165,6 +165,7 @@ int f;
else
return (-1);
# else
+ USE(f);
return (0);
# endif /* TIOCGETD && NTTYDISC */
#endif /* !HAVE_DISC */
@@ -192,5 +193,6 @@ int f;
# endif /* TIOCSETD && NTTYDISC */
#endif /* !HAVE_DISC */
}
+ USE(f);
return (0);
} /* end resetdisc */
OpenPOWER on IntegriCloud