From ab95437926e340b28df30cb43319cecc450e8b81 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Thu, 31 Jan 2013 23:26:42 +0100 Subject: [PATCH] One more unused typedef --- ltrace-0.7.2-unused-typedef.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/ltrace-0.7.2-unused-typedef.patch b/ltrace-0.7.2-unused-typedef.patch index a5f5a82..8f3c0ec 100644 --- a/ltrace-0.7.2-unused-typedef.patch +++ b/ltrace-0.7.2-unused-typedef.patch @@ -22,3 +22,28 @@ index d18db17..b98298e 100644 value_common_init(ret_val, valp->inferior, valp, valp->type->u.ptr_info.info, 0); +diff --git a/lens_default.c b/lens_default.c +index ed3d0e1..5d00814 100644 +--- a/lens_default.c ++++ b/lens_default.c +@@ -1,6 +1,6 @@ + /* + * This file is part of ltrace. +- * Copyright (C) 2011,2012 Petr Machata, Red Hat Inc. ++ * Copyright (C) 2011,2012,2013 Petr Machata, Red Hat Inc. + * Copyright (C) 1998,2004,2007,2008,2009 Juan Cespedes + * Copyright (C) 2006 Ian Wienand + * Copyright (C) 2006 Steve Fink +@@ -342,9 +342,9 @@ format_array(FILE *stream, struct value *value, struct value_dict *arguments, + struct expr_node *length, size_t maxlen, int before, + const char *open, const char *close, const char *delim) + { +- /* We need "long" to be long enough to cover the whole address +- * space. */ +- typedef char assert__long_enough_long[-(sizeof(long) < sizeof(void *))]; ++ /* We need "long" to be long enough to cover the whole target ++ * address space. */ ++ assert(sizeof(long) >= sizeof(arch_addr_t)); + long l; + if (expr_eval_word(length, value, arguments, &l) < 0) + return -1;