summaryrefslogtreecommitdiffstats
path: root/gettext-runtime/libasprintf/vasnprintf.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-11-26 11:19:46 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:11:21 +0200
commit220a284d231d6d271f03f91f47a4600ffab15870 (patch)
treec4360c2e01e0c6b8ca7a280a12e6cfb3f1cf1cb7 /gettext-runtime/libasprintf/vasnprintf.c
parent56b0aaba16e0b9c9b0d43aed259c3670a9b76235 (diff)
downloadexternal_gettext-220a284d231d6d271f03f91f47a4600ffab15870.zip
external_gettext-220a284d231d6d271f03f91f47a4600ffab15870.tar.gz
external_gettext-220a284d231d6d271f03f91f47a4600ffab15870.tar.bz2
Use size_t instead of ssize_t where possible.
Diffstat (limited to 'gettext-runtime/libasprintf/vasnprintf.c')
-rw-r--r--gettext-runtime/libasprintf/vasnprintf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gettext-runtime/libasprintf/vasnprintf.c b/gettext-runtime/libasprintf/vasnprintf.c
index 05a08bc..8a62282 100644
--- a/gettext-runtime/libasprintf/vasnprintf.c
+++ b/gettext-runtime/libasprintf/vasnprintf.c
@@ -223,7 +223,7 @@ VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list ar
{
size_t augmented_length;
- if (!(dp->arg_index < 0))
+ if (!(dp->arg_index == ARG_NONE))
abort ();
augmented_length = xsum (length, 1);
ENSURE_ALLOCATION (augmented_length);
@@ -232,7 +232,7 @@ VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list ar
}
else
{
- if (!(dp->arg_index >= 0))
+ if (!(dp->arg_index != ARG_NONE))
abort ();
if (dp->conversion == 'n')
@@ -280,7 +280,7 @@ VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list ar
width = 0;
if (dp->width_start != dp->width_end)
{
- if (dp->width_arg_index >= 0)
+ if (dp->width_arg_index != ARG_NONE)
{
int arg;
@@ -302,7 +302,7 @@ VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list ar
precision = 6;
if (dp->precision_start != dp->precision_end)
{
- if (dp->precision_arg_index >= 0)
+ if (dp->precision_arg_index != ARG_NONE)
{
int arg;
@@ -564,13 +564,13 @@ VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list ar
/* Construct the arguments for calling snprintf or sprintf. */
prefix_count = 0;
- if (dp->width_arg_index >= 0)
+ if (dp->width_arg_index != ARG_NONE)
{
if (!(a.arg[dp->width_arg_index].type == TYPE_INT))
abort ();
prefixes[prefix_count++] = a.arg[dp->width_arg_index].a.a_int;
}
- if (dp->precision_arg_index >= 0)
+ if (dp->precision_arg_index != ARG_NONE)
{
if (!(a.arg[dp->precision_arg_index].type == TYPE_INT))
abort ();