mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-22 19:58:29 +01: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:
parent
b0ba0c6314
commit
825d12638b
@ -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>
|
2005-06-21 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* http.c (send_request, http_open, http_open_document): Pass in
|
* http.c (send_request, http_open, http_open_document): Pass in
|
||||||
|
@ -33,7 +33,9 @@
|
|||||||
void *
|
void *
|
||||||
memrchr(const void *s, int c, size_t n)
|
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)
|
while(end>=start)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user