1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Trim trailing whitespaces.

This commit is contained in:
Laurent MONIN 2006-01-07 21:02:51 +01:00 committed by Laurent MONIN
parent eda6529ced
commit 8f2d4860bc

View File

@ -130,13 +130,13 @@ check_whether_file_exists(unsigned char *name)
for (i = 0; i < sizeof(chars) - 1; i++) { for (i = 0; i < sizeof(chars) - 1; i++) {
unsigned char *pos = memchr(name, chars[i], namelen); unsigned char *pos = memchr(name, chars[i], namelen);
int exists; int exists;
if (!pos) continue; if (!pos) continue;
*pos = 0; *pos = 0;
exists = file_exists(name); exists = file_exists(name);
*pos = chars[i]; *pos = chars[i];
if (exists) { if (exists) {
return pos - name; return pos - name;
} }
@ -155,7 +155,7 @@ check_uri_file(unsigned char *name)
for (i = 0; i < sizeof(chars) - 1; i++) { for (i = 0; i < sizeof(chars) - 1; i++) {
unsigned char *pos = memchr(name, chars[i], namelen); unsigned char *pos = memchr(name, chars[i], namelen);
if (!pos) continue; if (!pos) continue;
return pos - name; return pos - name;