From eccbea6e530515d96e79f42aea9aab4725b23611 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Mon, 30 Jun 2008 07:02:39 +0300 Subject: [PATCH] libdpkg: Remove unneeded 'const char *' cast --- ChangeLog | 4 ++++ lib/showpkg.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f549aefe..15f57b78 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-06-30 Guillem Jover + + * lib/showpkg.c (parsefield): Remove unneeded 'const char *' cast. + 2008-06-30 Guillem Jover * lib/dpkg-db.h (struct arbitraryfield): Make all 'char *' members diff --git a/lib/showpkg.c b/lib/showpkg.c index 85672e4c..61a30e31 100644 --- a/lib/showpkg.c +++ b/lib/showpkg.c @@ -60,7 +60,7 @@ static int parsefield(struct lstitem* cur, const char* fmt, const char* fmtend) len=fmtend-fmt+1; - ws=(const char*)memchr(fmt, ';', len); + ws = memchr(fmt, ';', len); if (ws) { char* endptr; long w; -- 2.39.5