aboutsummaryrefslogtreecommitdiff
path: root/stdlib/fmtmsg.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-08-28 10:16:21 +0000
committerUlrich Drepper <drepper@redhat.com>2002-08-28 10:16:21 +0000
commit4124ff9971b78f172ee2a8ec07a5542d7a5a56d5 (patch)
tree224e219a6b6340f2693fd037b0b84d298dccc3d5 /stdlib/fmtmsg.c
parent05b2fb299d70224cf81c51beb987b8ad97054058 (diff)
downloadglibc-4124ff9971b78f172ee2a8ec07a5542d7a5a56d5.zip
glibc-4124ff9971b78f172ee2a8ec07a5542d7a5a56d5.tar.gz
glibc-4124ff9971b78f172ee2a8ec07a5542d7a5a56d5.tar.bz2
(strtol): Add some more casts to avoid warnings.
Diffstat (limited to 'stdlib/fmtmsg.c')
-rw-r--r--stdlib/fmtmsg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/fmtmsg.c b/stdlib/fmtmsg.c
index bb8502f..660df1f 100644
--- a/stdlib/fmtmsg.c
+++ b/stdlib/fmtmsg.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@ -162,7 +162,7 @@ fmtmsg (long int classification, const char *label, int severity,
do_action ? "TO FIX: " : "",
do_action ? action : "",
do_action && do_tag ? " " : "",
- do_tag ? tag : "") == WEOF)
+ do_tag ? tag : "") < 0)
/* Oh, oh. An error occurred during the output. */
result = MM_NOMSG;
}
@@ -179,7 +179,7 @@ fmtmsg (long int classification, const char *label, int severity,
do_action ? "TO FIX: " : "",
do_action ? action : "",
do_action && do_tag ? " " : "",
- do_tag ? tag : "") == EOF)
+ do_tag ? tag : "") < 0)
/* Oh, oh. An error occurred during the output. */
result = MM_NOMSG;
}