libpayload: avoid excessive casts in printf.c
authorMathias Krause <minipli@googlemail.com>
Tue, 3 Apr 2012 19:02:33 +0000 (21:02 +0200)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Tue, 3 Apr 2012 22:41:57 +0000 (00:41 +0200)
commit6efbebdb58357b8d1aad43f51c91defd452296f6
treef78441549805280e4f3b2f831f80cc3b12b915a4
parent67997d330dae9c12eb640aa21f7e51b193890461
libpayload: avoid excessive casts in printf.c

struct printf_spec is a purely internal structure. Avoid excessive casts
when using the write function pointer just to make the compiler happy by
using the right types in the first place.

Change-Id: Ia4f3c79a5283cb76c8aa5f9d1eee758676303382
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Reviewed-on: http://review.coreboot.org/850
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
payloads/libpayload/libc/printf.c