X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=notes.h;h=109bc8f78236d8067568e524ffaf4ae21ee6c027;hb=8e99859266fa2f565d951a0a2ed8aed4b6e2ae8a;hp=9f59277c516f7ac78bcc66f91a7d7013b2a77f65;hpb=161cbf0b8e3280daab85a5b76910057a63016314;p=git.git diff --git a/notes.h b/notes.h index 9f59277c5..109bc8f78 100644 --- a/notes.h +++ b/notes.h @@ -18,7 +18,7 @@ * combine_notes_concatenate(), which appends the contents of the new note to * the contents of the existing note. */ -typedef int combine_notes_fn(unsigned char *cur_sha1, const unsigned char *new_sha1); +typedef int (*combine_notes_fn)(unsigned char *cur_sha1, const unsigned char *new_sha1); /* Common notes combinators */ int combine_notes_concatenate(unsigned char *cur_sha1, const unsigned char *new_sha1); @@ -38,7 +38,7 @@ extern struct notes_tree { struct int_node *root; struct non_note *first_non_note, *prev_non_note; char *ref; - combine_notes_fn *combine_notes; + combine_notes_fn combine_notes; int initialized; int dirty; } default_notes_tree;