aboutsummaryrefslogtreecommitdiff
path: root/display_args.c
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-01-06 21:04:03 +0100
committerPetr Machata <pmachata@redhat.com>2012-08-29 19:02:06 +0200
commit2bea8615d97097a334449ee95112c8a59277103e (patch)
tree2317da478386582761075a4778b9cb45e4430d60 /display_args.c
parent88a30210f32add54af498bf6f127b2b9773bdf8e (diff)
downloadltrace-2bea8615d97097a334449ee95112c8a59277103e.tar.gz
Drop ARGTYPE_STRING, all strings now have length (sometimes "zero")
Diffstat (limited to 'display_args.c')
-rw-r--r--display_args.c4
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. */