Merge branch 'en/double-semicolon-fix'

Code clean-up.

* en/double-semicolon-fix:
  Remove superfluous trailing semicolons
This commit is contained in:
Junio C Hamano 2018-09-24 10:30:47 -07:00
commit ae109a9789
3 changed files with 3 additions and 3 deletions

View File

@ -466,7 +466,7 @@ static char *prepare_push_cert_nonce(const char *path, timestamp_t stamp)
unsigned char sha1[GIT_SHA1_RAWSZ]; unsigned char sha1[GIT_SHA1_RAWSZ];
strbuf_addf(&buf, "%s:%"PRItime, path, stamp); strbuf_addf(&buf, "%s:%"PRItime, path, stamp);
hmac_sha1(sha1, buf.buf, buf.len, cert_nonce_seed, strlen(cert_nonce_seed));; hmac_sha1(sha1, buf.buf, buf.len, cert_nonce_seed, strlen(cert_nonce_seed));
strbuf_release(&buf); strbuf_release(&buf);
/* RFC 2104 5. HMAC-SHA1-80 */ /* RFC 2104 5. HMAC-SHA1-80 */

View File

@ -2240,7 +2240,7 @@ static struct dir_rename_entry *check_dir_renamed(const char *path,
{ {
char *temp = xstrdup(path); char *temp = xstrdup(path);
char *end; char *end;
struct dir_rename_entry *entry = NULL;; struct dir_rename_entry *entry = NULL;
while ((end = strrchr(temp, '/'))) { while ((end = strrchr(temp, '/'))) {
*end = '\0'; *end = '\0';

View File

@ -178,7 +178,7 @@ static int set_option(const char *name, const char *value)
options.no_dependents = 1; options.no_dependents = 1;
return 0; return 0;
} else if (!strcmp(name, "filter")) { } else if (!strcmp(name, "filter")) {
options.filter = xstrdup(value);; options.filter = xstrdup(value);
return 0; return 0;
} else { } else {
return 1 /* unsupported */; return 1 /* unsupported */;