threads / patch / 1150

patchTidy up - remove use of (*f)() idiom from epoch.c

Subject: [PATCH] Tidy up - remove use of (*f)() idiom from epoch.c

## tl;dr

One message between Jul 7, 2005 and Jul 7, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Jon Seymour· Jul 7, 2005, 01:26 UTC · lore
Replace (*f)() with f() where the former idiom was used in epoch.c
Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
---
 epoch.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
ce760b162be7463a5648d086bfd7ac324ba66edd
Show changes to epoch.c +3 −3
diff --git a/epoch.c b/epoch.c
--- a/epoch.c
+++ b/epoch.c
@@ -499,7 +499,7 @@ static int emit_stack(struct commit_list
 		if (*stack || include_last) {
 			if (!*stack) 
 				next->object.flags |= BOUNDARY;
-			action = (*emitter) (next);
+			action = emitter(next);
 		}
 	}
 
@@ -545,7 +545,7 @@ static int sort_in_merge_order(struct co
 				if (next->object.flags & UNINTERESTING) {
 					action = STOP;
 				} else {
-					action = (*emitter) (next);
+					action = emitter(next);
 				}
 				if (action != STOP) {
 					next = next->parents->item;
@@ -562,7 +562,7 @@ static int sort_in_merge_order(struct co
 	}
 
 	if (next && (action != STOP) && !ret) {
-		(*emitter) (next);
+		emitter(next);
 	}
 
 	return ret;
------------

← back to recent threads