Two trivial cleanups (#36980)

This commit is contained in:
Yu Watanabe
2025-04-03 08:56:46 +09:00
committed by GitHub
18 changed files with 40 additions and 43 deletions
+5 -5
View File
@@ -857,10 +857,10 @@ void fw_nftables_exit(FirewallContext *ctx) {
static int nft_message_append_setelem_iprange(
sd_netlink_message *m,
const union in_addr_union *source,
unsigned int prefixlen) {
unsigned prefixlen) {
uint32_t mask, start, end;
unsigned int nplen;
unsigned nplen;
int r;
assert(m);
@@ -896,7 +896,7 @@ static int nft_message_append_setelem_iprange(
static int nft_message_append_setelem_ip6range(
sd_netlink_message *m,
const union in_addr_union *source,
unsigned int prefixlen) {
unsigned prefixlen) {
union in_addr_union start, end;
int r;
@@ -931,7 +931,7 @@ int nft_set_element_modify_iprange(
const char *table,
const char *set,
const union in_addr_union *source,
unsigned int source_prefixlen) {
unsigned source_prefixlen) {
_cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL;
int r;
@@ -1041,7 +1041,7 @@ int fw_nftables_add_masquerade(
bool add,
int af,
const union in_addr_union *source,
unsigned int source_prefixlen) {
unsigned source_prefixlen) {
int r;
+1 -1
View File
@@ -74,7 +74,7 @@ int nft_set_element_modify_iprange(
const char *table,
const char *set,
const union in_addr_union *source,
unsigned int source_prefixlen);
unsigned source_prefixlen);
int nft_set_element_modify_ip(
FirewallContext *ctx,
+2 -2
View File
@@ -164,7 +164,7 @@ int openssl_digest_many(
if (!buf)
return log_oom_debug();
unsigned int size;
unsigned size;
if (!EVP_DigestFinal_ex(ctx, buf, &size))
return log_openssl_errors("Failed to finalize Digest");
@@ -260,7 +260,7 @@ int openssl_hmac_many(
size_t size;
if (!EVP_MAC_final(ctx, buf, &size, digest_size))
#else
unsigned int size;
unsigned size;
if (!HMAC_Final(ctx, buf, &size))
#endif
return log_openssl_errors("Failed to finalize HMAC");
+1 -1
View File
@@ -82,7 +82,7 @@ static void print_border(FILE *output, unsigned width, unsigned row, unsigned co
}
}
static void write_qrcode(FILE *output, QRcode *qr, unsigned int row, unsigned int column) {
static void write_qrcode(FILE *output, QRcode *qr, unsigned row, unsigned column) {
assert(qr);
if (!output)