Commit Diff


commit - df9870925ecd180db6e278a974be5a130cec50c6
commit + 569e9b0bff6299ad5003698c1ca01e40da2ced14
blob - 5c820110e2837ee6a8cd741e88047a2a6b260bc7
blob + e6370b544e0cdee69cc9e7d4b3159879ebba563a
--- lib/patch.c
+++ lib/patch.c
@@ -21,7 +21,6 @@
  */
 
 #include <sys/types.h>
-#include <sys/queue.h>
 #include <sys/socket.h>
 #include <sys/stat.h>
 #include <sys/uio.h>
@@ -33,7 +32,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <imsg.h>
 
 #include "got_error.h"
 #include "got_object.h"
@@ -577,7 +575,7 @@ apply_patch(struct got_worktree *worktree, struct got_
 		 * the lines but just schedule the removal.
 		 */
 		err = got_worktree_schedule_delete(worktree, &oldpaths,
-		    0, NULL, delete_cb, delete_arg, repo, 0, 0);
+		    0, NULL, patch_delete, pa, repo, 0, 0);
 		goto done;
 	}