Explorar o código

libdpkg: Remove unneeded 'const char *' cast

Guillem Jover %!s(int64=18) %!d(string=hai) anos
pai
achega
eccbea6e53
Modificáronse 2 ficheiros con 5 adicións e 1 borrados
  1. 4 0
      ChangeLog
  2. 1 1
      lib/showpkg.c

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+2008-06-30  Guillem Jover  <guillem@debian.org>
+
+	* lib/showpkg.c (parsefield): Remove unneeded 'const char *' cast.
+
 2008-06-30  Guillem Jover  <guillem@debian.org>
 2008-06-30  Guillem Jover  <guillem@debian.org>
 
 
 	* lib/dpkg-db.h (struct arbitraryfield): Make all 'char *' members
 	* lib/dpkg-db.h (struct arbitraryfield): Make all 'char *' members

+ 1 - 1
lib/showpkg.c

@@ -60,7 +60,7 @@ static int parsefield(struct lstitem* cur, const char* fmt, const char* fmtend)
 
 
 	len=fmtend-fmt+1;
 	len=fmtend-fmt+1;
 
 
-	ws=(const char*)memchr(fmt, ';', len);
+	ws = memchr(fmt, ';', len);
 	if (ws) {
 	if (ws) {
 		char* endptr;
 		char* endptr;
 		long w;
 		long w;