summaryrefslogtreecommitdiffstats
path: root/bin/stty
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1995-03-19 13:29:28 +0000
committerjoerg <joerg@FreeBSD.org>1995-03-19 13:29:28 +0000
commitc6030c6511c69b69a216c893957b01bfc264d365 (patch)
tree163891f0a6f18e48e3d38e4d107ad82c2f5c570a /bin/stty
parent568f2efc88b72b511e26d42250ac4250a6610415 (diff)
downloadFreeBSD-src-c6030c6511c69b69a216c893957b01bfc264d365.zip
FreeBSD-src-c6030c6511c69b69a216c893957b01bfc264d365.tar.gz
You will find enclosed some changes to make gcc -Wall more happy in
/usr/src/bin. Note that some patches are still needed in that directory. I (Joerg) finished most of Philippe's cleanup. /bin/sh will still need *allot* of work, however. Submitted by: charnier@lirmm.fr (Philippe Charnier)
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 b0bf79a..880c122 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 4b388d2..bc7cf56 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
OpenPOWER on IntegriCloud