diff options
author | James Bursa <james@netsurf-browser.org> | 2007-01-29 22:27:15 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2007-01-29 22:27:15 +0000 |
commit | a0b6661eb6980095f24d6317a31404596d70ba8c (patch) | |
tree | b91c612d48815c03d05ec0466c543d85d72628c3 /render/directory.c | |
parent | b76283f3d52985abd24081bcbb9196ec440e10af (diff) | |
download | netsurf-a0b6661eb6980095f24d6317a31404596d70ba8c.tar.gz netsurf-a0b6661eb6980095f24d6317a31404596d70ba8c.tar.bz2 |
Make GTK build compile on FreeBSD.
svn path=/trunk/netsurf/; revision=3154
Diffstat (limited to 'render/directory.c')
-rw-r--r-- | render/directory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/render/directory.c b/render/directory.c index 1449b46f0..c64d05a77 100644 --- a/render/directory.c +++ b/render/directory.c @@ -101,8 +101,8 @@ bool directory_convert(struct content *c, int width, int height) { return false; } while ((entry = readdir(parent)) != NULL) { - if ((entry->d_ino == 0) || (!strcmp(entry->d_name, ".")) || - (!strcmp(entry->d_name, ".."))) + if (!strcmp(entry->d_name, ".") || + !strcmp(entry->d_name, "..")) continue; snprintf(buffer, sizeof(buffer), "<a href=\"%s/%s\">%s</a>\n", |