summaryrefslogtreecommitdiffabout
path: root/html.c
authorJeffrey C. Ollie <jeff@ocjtech.us>2007-06-04 17:28:56 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-06-04 17:58:32 (UTC)
commite651cb0d2dc2dbd458c51cdba8ae56e8629348cc (patch) (side-by-side diff)
treeda70e147ef829797f0c152883abc59f8b40b1407 /html.c
parent51a960a3ca6b0cade97db287a342996c3e1de48d (diff)
downloadcgit-e651cb0d2dc2dbd458c51cdba8ae56e8629348cc.zip
cgit-e651cb0d2dc2dbd458c51cdba8ae56e8629348cc.tar.gz
cgit-e651cb0d2dc2dbd458c51cdba8ae56e8629348cc.tar.bz2
Rename dirlink to gitlink.
Git changed from dirlink to gitlink in 302b9282c9ddfcc704ca759bdc98c1d5f75eba2f. Signed-off-by: Jeffrey C. Ollie <jeff@ocjtech.us>
Diffstat (limited to 'html.c') (more/less context) (ignore whitespace changes)
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index 33a956f..76fa6c4 100644
--- a/html.c
+++ b/html.c
@@ -149,25 +149,25 @@ void html_link_close(void)
void html_fileperm(unsigned short mode)
{
htmlf("%c%c%c", (mode & 4 ? 'r' : '-'),
(mode & 2 ? 'w' : '-'), (mode & 1 ? 'x' : '-'));
}
void html_filemode(unsigned short mode)
{
if (S_ISDIR(mode))
html("d");
else if (S_ISLNK(mode))
html("l");
- else if (S_ISDIRLNK(mode))
+ else if (S_ISGITLINK(mode))
html("m");
else
html("-");
html_fileperm(mode >> 6);
html_fileperm(mode >> 3);
html_fileperm(mode);
}
int html_include(const char *filename)
{
FILE *f;
char buf[4096];