diff options
author | David Kalnischkies <david@kalnischkies.de> | 2014-02-27 01:54:10 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2014-03-13 13:58:45 +0100 |
commit | cf4ff3b78dc347188949370db914fe6329be6c99 (patch) | |
tree | 8c1d87cad9d7d1f22be37fada823688c72086f74 /apt-pkg/contrib/fileutl.cc | |
parent | 3de8f956d5fcf023ab65f88579cd77121694d872 (diff) |
warning: cast from type A to type B casts away qualifiers [-Wcast-qual]
Git-Dch: Ignore
Reported-By: gcc -Wcast-qual
Diffstat (limited to 'apt-pkg/contrib/fileutl.cc')
-rw-r--r-- | apt-pkg/contrib/fileutl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc index 52411a762..17833f090 100644 --- a/apt-pkg/contrib/fileutl.cc +++ b/apt-pkg/contrib/fileutl.cc @@ -1400,7 +1400,7 @@ bool FileFd::Write(const void *From,unsigned long long Size) return FileFdErrno("write",_("Write error")); } - From = (char *)From + Res; + From = (char const *)From + Res; Size -= Res; if (d != NULL) d->seekpos += Res; @@ -1424,7 +1424,7 @@ bool FileFd::Write(int Fd, const void *From, unsigned long long Size) if (Res < 0) return _error->Errno("write",_("Write error")); - From = (char *)From + Res; + From = (char const *)From + Res; Size -= Res; } while (Res > 0 && Size > 0); |