mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-27 12:02:10 -05:00
parent
a0095a7c1a
commit
a92a3ecf44
3 changed files with 5 additions and 5 deletions
|
|
@ -804,8 +804,8 @@ hashlist_findnext(const hashlist_t *l,
|
|||
next = l->hashbuf;
|
||||
if (next[l->length - 1] == 0)
|
||||
break;
|
||||
} while (entries-- > 1);
|
||||
INSIST(entries != 0);
|
||||
} while (entries-- > 1U);
|
||||
INSIST(entries != 0U);
|
||||
return (next);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -847,7 +847,7 @@ t2_sigchk(char *datapath, char *sigpath, char *keyname,
|
|||
* Read precomputed signature from file in a form usable by dst_verify.
|
||||
*/
|
||||
rval = sig_fromfile(sigpath, &sigbuf);
|
||||
if (rval != 0) {
|
||||
if (rval != 0U) {
|
||||
t_info("sig_fromfile failed\n");
|
||||
(void) free(data);
|
||||
dst_key_free(&key);
|
||||
|
|
|
|||
|
|
@ -704,7 +704,7 @@ dns_journal_open(isc_mem_t *mctx, const char *filename, unsigned int mode,
|
|||
result = journal_open(mctx, filename, write, create, journalp);
|
||||
if (result == ISC_R_NOTFOUND) {
|
||||
namelen = strlen(filename);
|
||||
if (namelen > 4 && strcmp(filename + namelen - 4, ".jnl") == 0)
|
||||
if (namelen > 4U && strcmp(filename + namelen - 4, ".jnl") == 0)
|
||||
namelen -= 4;
|
||||
|
||||
result = isc_string_printf(backup, sizeof(backup), "%.*s.jbk",
|
||||
|
|
@ -2109,7 +2109,7 @@ dns_journal_compact(isc_mem_t *mctx, char *filename, isc_uint32_t serial,
|
|||
isc_boolean_t is_backup = ISC_FALSE;
|
||||
|
||||
namelen = strlen(filename);
|
||||
if (namelen > 4 && strcmp(filename + namelen - 4, ".jnl") == 0)
|
||||
if (namelen > 4U && strcmp(filename + namelen - 4, ".jnl") == 0)
|
||||
namelen -= 4;
|
||||
|
||||
result = isc_string_printf(newname, sizeof(newname), "%.*s.jnw",
|
||||
|
|
|
|||
Loading…
Reference in a new issue