diff options
author | Petr Machata <pmachata@redhat.com> | 2012-01-06 21:04:03 +0100 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-08-29 19:02:06 +0200 |
commit | 2bea8615d97097a334449ee95112c8a59277103e (patch) | |
tree | 2317da478386582761075a4778b9cb45e4430d60 /display_args.c | |
parent | 88a30210f32add54af498bf6f127b2b9773bdf8e (diff) | |
download | ltrace-2bea8615d97097a334449ee95112c8a59277103e.tar.gz |
Drop ARGTYPE_STRING, all strings now have length (sometimes "zero")
Diffstat (limited to 'display_args.c')
-rw-r--r-- | display_args.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/display_args.c b/display_args.c index 00f74cb..9b27155 100644 --- a/display_args.c +++ b/display_args.c @@ -145,7 +145,6 @@ format_char(FILE *stream, struct value *value, struct value_dict *arguments) * string, and we need to display quotes. */ int quote = !(value->parent != NULL && (value->parent->type->type == ARGTYPE_ARRAY - || value->parent->type->type == ARGTYPE_STRING || value->parent->type->type == ARGTYPE_STRING_N)); int written = 0; if (quote && acc_fprintf(&written, stream, "'") < 0) @@ -362,8 +361,7 @@ format_argument(FILE *stream, struct value *value, struct value_dict *arguments) case ARGTYPE_STRING_N: length = value->type->u.string_n_info.length; /* fall-through */ - case ARGTYPE_FORMAT: - case ARGTYPE_STRING: { + case ARGTYPE_FORMAT: { /* Strings are in fact char pointers. Smuggle in the * pointer here. */ |