From: Guillem Jover Date: Mon, 30 Jun 2008 04:02:39 +0000 (+0300) Subject: libdpkg: Remove unneeded 'const char *' cast X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eccbea6e530515d96e79f42aea9aab4725b23611;p=dpkg libdpkg: Remove unneeded 'const char *' cast --- 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;