summaryrefslogtreecommitdiffabout
path: root/ui-blob.c
Unidiff
Diffstat (limited to 'ui-blob.c') (more/less context) (ignore whitespace changes)
-rw-r--r--ui-blob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-blob.c b/ui-blob.c
index bd44574..3b29132 100644
--- a/ui-blob.c
+++ b/ui-blob.c
@@ -1,24 +1,24 @@
1/* ui-blob.c: show blob content 1/* ui-blob.c: show blob content
2 * 2 *
3 * Copyright (C) 2008 Lars Hjemli 3 * Copyright (C) 2008 Lars Hjemli
4 * 4 *
5 * Licensed under GNU General Public License v2 5 * Licensed under GNU General Public License v2
6 * (see COPYING for full license text) 6 * (see COPYING for full license text)
7 */ 7 */
8 8
9#include "cgit.h" 9#include "cgit.h"
10#include "html.h" 10#include "html.h"
11 11
12void cgit_print_blob(struct cacheitem *item, const char *hex, char *path) 12void cgit_print_blob(const char *hex, char *path)
13{ 13{
14 14
15 unsigned char sha1[20]; 15 unsigned char sha1[20];
16 enum object_type type; 16 enum object_type type;
17 unsigned char *buf; 17 unsigned char *buf;
18 unsigned long size; 18 unsigned long size;
19 19
20 if (get_sha1_hex(hex, sha1)){ 20 if (get_sha1_hex(hex, sha1)){
21 cgit_print_error(fmt("Bad hex value: %s", hex)); 21 cgit_print_error(fmt("Bad hex value: %s", hex));
22 return; 22 return;
23 } 23 }
24 24