aboutsummaryrefslogtreecommitdiff
path: root/bin/stty
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1995-03-19 13:29:28 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1995-03-19 13:29:28 +0000
commit0fd510b71aa44308681d2e01c9d772f32af24313 (patch)
tree163891f0a6f18e48e3d38e4d107ad82c2f5c570a /bin/stty
parent967a3bf89387d29910172d5d39863b19da1c3685 (diff)
Notes
Diffstat (limited to 'bin/stty')
-rw-r--r--bin/stty/gfmt.c6
-rw-r--r--bin/stty/key.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/bin/stty/gfmt.c b/bin/stty/gfmt.c
index b0bf79a779461..880c122644e48 100644
--- a/bin/stty/gfmt.c
+++ b/bin/stty/gfmt.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: gfmt.c,v 1.2 1994/09/24 02:58:57 davidg Exp $
*/
#ifndef lint
@@ -64,11 +64,11 @@ gprint(tp, wp, ldisc)
{
struct cchar *cp;
- (void)printf("gfmt1:cflag=%x:iflag=%x:lflag=%x:oflag=%x:",
+ (void)printf("gfmt1:cflag=%lx:iflag=%lx:lflag=%lx:oflag=%lx:",
tp->c_cflag, tp->c_iflag, tp->c_lflag, tp->c_oflag);
for (cp = cchars1; cp->name; ++cp)
(void)printf("%s=%x:", cp->name, tp->c_cc[cp->sub]);
- (void)printf("ispeed=%d:ospeed=%d\n", cfgetispeed(tp), cfgetospeed(tp));
+ (void)printf("ispeed=%ld:ospeed=%ld\n", cfgetispeed(tp), cfgetospeed(tp));
}
void
diff --git a/bin/stty/key.c b/bin/stty/key.c
index 4b388d2cbf484..bc7cf562e97b8 100644
--- a/bin/stty/key.c
+++ b/bin/stty/key.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: key.c,v 1.2 1994/09/24 02:58:58 davidg Exp $
*/
#ifndef lint
@@ -286,7 +286,7 @@ f_speed(ip)
struct info *ip;
{
- (void)printf("%d\n", cfgetospeed(&ip->t));
+ (void)printf("%ld\n", cfgetospeed(&ip->t));
}
void