summaryrefslogtreecommitdiff
path: root/libiberty/mkstemp.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-15 15:55:04 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-10-15 15:55:04 +0000
commit4350e959599ebdedc2eb2ca196d2d6116feaa8cb (patch)
tree368cd8929f4b72dcda6983b75b0625fd2c6962c4 /libiberty/mkstemp.c
parent6528caf7bbf61edc3d848d9a8ff8c02b25116bbd (diff)
downloadgcc-4350e959599ebdedc2eb2ca196d2d6116feaa8cb.tar.gz
Warning fixes:
* choose-temp.c: Prototype mkstemps() when IN_GCC. * cplus-dem.c (consume_count): Cast argument of ctype macro to `unsigned char'. (cplus_demangle_opname): Cast the result of `strlen' to (int) when comparing against one. (cplus_mangle_opname): Likewise. (demangle_integral_value): Cast argument of ctype macro to `unsigned char'. (demangle_template_value_parm): Likewise. (demangle_template): Initialize variable `bindex'. Cast the result of `strlen' to (int) when comparing against one. Remove unused variable `start_of_value_parm'. (demangle_class_name): Cast the result of `strlen' to (int) when comparing against one. (demangle_prefix): Cast argument of ctype macro to `unsigned char'. (gnu_special): Likewise. Cast the result of `strlen' to (int) when comparing against one. (demangle_qualified): Cast argument of ctype macro to `unsigned char'. (get_count): Likewise. (do_type): Likewise. Cast the result of `strlen' to (int) when comparing against one. (demangle_fund_type): Cast argument of ctype macro to `unsigned char'. (demangle_function_name): Cast the result of `strlen' to (int) when comparing against one. * mkstemp.c (mkstemps): Cast variable `len' to (int) when comparing against one. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23113 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/mkstemp.c')
-rw-r--r--libiberty/mkstemp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/mkstemp.c b/libiberty/mkstemp.c
index af496d532e8..6d1b40ecf82 100644
--- a/libiberty/mkstemp.c
+++ b/libiberty/mkstemp.c
@@ -82,7 +82,7 @@ mkstemps (template, suffix_len)
len = strlen (template);
- if (len < 6 + suffix_len
+ if ((int) len < 6 + suffix_len
|| strncmp (&template[len - 6 - suffix_len], "XXXXXX", 6))
{
return -1;