1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-21 01:02:46 +02:00

* memrchr.c (memrchr): Not all compilers allow initializing based on a

variable that is also being initialized.  Noted by Nelson H. F. Beebe.
This commit is contained in:
David Shaw 2005-06-22 20:05:21 +00:00
parent b0ba0c6314
commit 825d12638b
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-06-22 David Shaw <dshaw@jabberwocky.com>
* memrchr.c (memrchr): Not all compilers allow initializing based
on a variable that is also being initialized. Noted by Nelson
H. F. Beebe.
2005-06-21 David Shaw <dshaw@jabberwocky.com>
* http.c (send_request, http_open, http_open_document): Pass in

View File

@ -33,7 +33,9 @@
void *
memrchr(const void *s, int c, size_t n)
{
const unsigned char *start=s,*end=s+n-1;
const unsigned char *start=s,*end=s;
end+=n-1;
while(end>=start)
{