Commit Diff


commit - d8473d93ab2c3a6fe1f2d602458543fc5fcaf007
commit + d30ab56fff40b038af410d963b66e866a8e4e528
blob - 39827e91edca9da87bdc0ce98c9a77260b22dd4e
blob + 2d6c882fd2177fc9f0eb55c1384272d072e6e163
--- got/got.c
+++ got/got.c
@@ -8901,7 +8901,7 @@ cmd_send(int argc, char *argv[])
 	char *proto = NULL, *host = NULL, *port = NULL;
 	char *repo_name = NULL, *server_path = NULL;
 	const struct got_remote_repo *remotes, *remote = NULL;
-	int nremotes, nbranches = 0, ntags = 0, ndelete_branches = 0;
+	int nremotes, nbranches = 0, ndelete_branches = 0;
 	struct got_repository *repo = NULL;
 	struct got_worktree *worktree = NULL;
 	const struct got_gotconfig *repo_conf = NULL, *worktree_conf = NULL;
@@ -8958,7 +8958,6 @@ cmd_send(int argc, char *argv[])
 			error = got_pathlist_append(&tags, optarg, NULL);
 			if (error)
 				return error;
-			ntags++;
 			break;
 		case 'T':
 			send_all_tags = 1;
@@ -9135,7 +9134,6 @@ cmd_send(int argc, char *argv[])
 			    tagname, NULL);
 			if (error)
 				goto done;
-			ntags++;
 		}
 	}
 
blob - 2de1e193e4c5cba31c0fc391b178414c4a5b8d9d
blob + 3800e67fcce500f30b32b4c3590bdf0493827da1
--- lib/sigs.c
+++ lib/sigs.c
@@ -56,7 +56,7 @@
 #endif
 
 const struct got_error *
-got_sigs_apply_unveil()
+got_sigs_apply_unveil(void)
 {
 	if (unveil(GOT_TAG_PATH_SSH_KEYGEN, "x") != 0) {
 		return got_error_from_errno2("unveil",