summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5bdd523)
raw | patch | inline | side by side (parent: 5bdd523)
author | Dominik Vogt <dvogt@ffm.tc.iot.dtag.de> | |
Tue, 12 Feb 2008 17:14:32 +0000 (18:14 +0100) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Wed, 19 Mar 2008 20:47:39 +0000 (21:47 +0100) |
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
tig.c | patch | blob | history |
index 39e22e78c4839c9eece0ab04d1565302cb0dd7c7..fcbf93c51aa4047619526db4a89b32ba7ab8ae45 100644 (file)
--- a/tig.c
+++ b/tig.c
add_pager_refs(struct view *view, struct line *line)
{
char buf[SIZEOF_STR];
- char *commit_id = line->data + STRING_SIZE("commit ");
+ char *commit_id = (char *)line->data + STRING_SIZE("commit ");
struct ref **refs;
size_t bufpos = 0, refpos = 0;
const char *sep = "Refs: ";
pager_select(struct view *view, struct line *line)
{
if (line->type == LINE_COMMIT) {
- char *text = line->data + STRING_SIZE("commit ");
+ char *text = (char *)line->data + STRING_SIZE("commit ");
if (view != VIEW(REQ_VIEW_PAGER))
string_copy_rev(view->ref, text);
static void
tree_select(struct view *view, struct line *line)
{
- char *text = line->data + STRING_SIZE("100644 blob ");
+ char *text = (char *)line->data + STRING_SIZE("100644 blob ");
if (line->type == LINE_TREE_FILE) {
string_copy_rev(ref_blob, text);