tree-wide: "a" -> "an"

This commit is contained in:
Yu Watanabe
2021-06-30 23:33:00 +09:00
parent 3d62af7d23
commit 387f695526
30 changed files with 38 additions and 38 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ static int files_add(
if (flags & (CONF_FILES_REGULAR|CONF_FILES_DIRECTORY))
if (!((flags & CONF_FILES_DIRECTORY) && S_ISDIR(st.st_mode)) &&
!((flags & CONF_FILES_REGULAR) && S_ISREG(st.st_mode))) {
log_debug("Ignoring '%s/%s', as it is not a of the right type.", dirpath, de->d_name);
log_debug("Ignoring '%s/%s', as it does not have the right type.", dirpath, de->d_name);
continue;
}
+1 -1
View File
@@ -112,7 +112,7 @@ assert_cc(IDX_FIRST == _IDX_SWAP_END);
assert_cc(IDX_FIRST == _IDX_ITERATOR_FIRST);
/* Storage space for the "swap" buckets.
* All entry types can fit into a ordered_hashmap_entry. */
* All entry types can fit into an ordered_hashmap_entry. */
struct swap_entries {
struct ordered_hashmap_entry e[_IDX_SWAP_END - _IDX_SWAP_BEGIN];
};
+1 -1
View File
@@ -224,7 +224,7 @@ static inline int ordered_hashmap_remove_and_replace(OrderedHashmap *h, const vo
return hashmap_remove_and_replace(PLAIN_HASHMAP(h), old_key, new_key, value);
}
/* Since merging data from a OrderedHashmap into a Hashmap or vice-versa
/* Since merging data from an OrderedHashmap into a Hashmap or vice-versa
* should just work, allow this by having looser type-checking here. */
int _hashmap_merge(Hashmap *h, Hashmap *other);
#define hashmap_merge(h, other) _hashmap_merge(PLAIN_HASHMAP(h), PLAIN_HASHMAP(other))
+1 -1
View File
@@ -6251,7 +6251,7 @@ int exec_runtime_acquire(Manager *m, const ExecContext *c, const char *id, bool
rt = hashmap_get(m->exec_runtime_by_id, id);
if (rt)
/* We already have a ExecRuntime object, let's increase the ref count and reuse it */
/* We already have an ExecRuntime object, let's increase the ref count and reuse it */
goto ref;
if (!create) {
+1 -1
View File
@@ -3195,7 +3195,7 @@ int config_parse_syscall_filter(
/* Allow nothing but the ones listed */
c->syscall_allow_list = true;
/* Accept default syscalls if we are on a allow_list */
/* Accept default syscalls if we are on an allow_list */
r = seccomp_parse_syscall_filter(
"@default", -1, c->syscall_filter,
SECCOMP_PARSE_PERMISSIVE|SECCOMP_PARSE_ALLOW_LIST,
+1 -1
View File
@@ -633,7 +633,7 @@ static int add_root_mount(void) {
int r;
if (!is_efi_boot()) {
log_debug("Not a EFI boot, not creating root mount.");
log_debug("Not an EFI boot, not creating root mount.");
return 0;
}
+1 -1
View File
@@ -93,7 +93,7 @@ static struct udev_enumerate *udev_enumerate_free(struct udev_enumerate *udev_en
* udev_enumerate_ref:
* @udev_enumerate: context
*
* Take a reference of a enumeration context.
* Take a reference of an enumeration context.
*
* Returns: the passed enumeration context
**/
+1 -1
View File
@@ -72,7 +72,7 @@ struct Manager {
* this is != 0 and encodes what is being done */
InhibitWhat action_what;
/* If a shutdown/suspend was delayed due to a inhibitor this
/* If a shutdown/suspend was delayed due to an inhibitor this
contains the unit name we are supposed to start after the
delay is over */
const char *action_unit;
+1 -1
View File
@@ -47,7 +47,7 @@ static int ipv6_proxy_ndp_address_configure_handler(sd_netlink *rtnl, sd_netlink
return 1;
}
/* send a request to the kernel to add a IPv6 Proxy entry to the neighbour table */
/* send a request to the kernel to add an IPv6 Proxy entry to the neighbour table */
static int ipv6_proxy_ndp_address_configure(
const struct in6_addr *address,
Link *link,
+1 -1
View File
@@ -368,7 +368,7 @@ static int help(void) {
" Create a macvlan network interface based on an\n"
" existing network interface to the container\n"
" --network-ipvlan=INTERFACE\n"
" Create a ipvlan network interface based on an\n"
" Create an ipvlan network interface based on an\n"
" existing network interface to the container\n"
" -n --network-veth Add a virtual Ethernet connection between host\n"
" and container\n"
+1 -1
View File
@@ -533,7 +533,7 @@ DnsServerFeatureLevel dns_server_possible_feature_level(DnsServer *s) {
DNS_SERVER_FEATURE_LEVEL_IS_DNSSEC(s->possible_feature_level) &&
dns_server_get_dnssec_mode(s) != DNSSEC_YES) {
/* RRSIG data was missing on a EDNS0 packet with DO bit set. This means the server
/* RRSIG data was missing on an EDNS0 packet with DO bit set. This means the server
* doesn't augment responses with DNSSEC RRs. If so, let's better not ask the server
* for it anymore, after all some servers generate different replies depending if an
* OPT RR is in the query or not. If we are in strict DNSSEC mode, don't allow such
+1 -1
View File
@@ -14,7 +14,7 @@ struct bus_properties_map {
enum {
BUS_MAP_STRDUP = 1 << 0, /* If set, each "s" message is duplicated. Thus, each pointer needs to be freed. */
BUS_MAP_BOOLEAN_AS_BOOL = 1 << 1, /* If set, each "b" message is written to a bool pointer. If not set, "b" is written to a int pointer. */
BUS_MAP_BOOLEAN_AS_BOOL = 1 << 1, /* If set, each "b" message is written to a bool pointer. If not set, "b" is written to an int pointer. */
};
int bus_map_id128(sd_bus *bus, const char *member, sd_bus_message *m, sd_bus_error *error, void *userdata);
+1 -1
View File
@@ -561,7 +561,7 @@ static int nft_add_element(sd_netlink *nfnl, sd_netlink_message **ret,
/*
* Ideally there would be an API that provides:
*
* 1) a init function to add the main ruleset skeleton
* 1) an init function to add the main ruleset skeleton
* 2) a function that populates the sets with all known address/port pairs to s/dnat for
* 3) a function that can remove address/port pairs again.
*
+1 -1
View File
@@ -2694,7 +2694,7 @@ int table_print_with_pager(
assert(t);
/* A all-in-one solution for showing tables, and turning on a pager first. Also optionally suppresses
/* An all-in-one solution for showing tables, and turning on a pager first. Also optionally suppresses
* the table header and logs about any error. */
if (json_format_flags & (JSON_FORMAT_OFF|JSON_FORMAT_PRETTY|JSON_FORMAT_PRETTY_AUTO))
+1 -1
View File
@@ -4242,7 +4242,7 @@ int json_dispatch_uid_gid(const char *name, JsonVariant *variant, JsonDispatchFl
}
if (!json_variant_is_unsigned(variant))
return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not a integer.", strna(name));
return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not an integer.", strna(name));
k = json_variant_unsigned(variant);
if (k > UINT32_MAX || !uid_is_valid(k))
+2 -2
View File
@@ -708,7 +708,7 @@ static int json_dispatch_tasks_or_memory_max(const char *name, JsonVariant *vari
}
if (!json_variant_is_unsigned(variant))
return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not a integer.", strna(name));
return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not an integer.", strna(name));
k = json_variant_unsigned(variant);
if (k <= 0 || k >= UINT64_MAX)
@@ -728,7 +728,7 @@ static int json_dispatch_weight(const char *name, JsonVariant *variant, JsonDisp
}
if (!json_variant_is_unsigned(variant))
return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not a integer.", strna(name));
return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not an integer.", strna(name));
k = json_variant_unsigned(variant);
if (k <= CGROUP_WEIGHT_MIN || k >= CGROUP_WEIGHT_MAX)
+1 -1
View File
@@ -489,7 +489,7 @@ int main(int argc, char *argv[]) {
if (!changed && umount_log_level == LOG_INFO && !can_initrd) {
/* There are things we cannot get rid of. Loop one more time
* with LOG_ERR to inform the user. Note that we don't need
* to do this if there is a initrd to switch to, because that
* to do this if there is an initrd to switch to, because that
* one is likely to get rid of the remaining mounts. If not,
* it will log about them. */
umount_log_level = LOG_ERR;
+1 -1
View File
@@ -1588,7 +1588,7 @@ static int parse_line(const char *fname, unsigned line, const char *buffer) {
if (!resolved_id)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
"[%s:%u] Lines of type 'r' require a ID range in the third field.",
"[%s:%u] Lines of type 'r' require an ID range in the third field.",
fname, line);
if (description || home || shell)
@@ -531,7 +531,7 @@ static int parse_argv(int argc, char *argv[]) {
/*
* To be able to ask on all terminal devices of /dev/console the devices are collected. If more than one
* device is found, then on each of the terminals a inquiring task is forked. Every task has its own session
* device is found, then on each of the terminals an inquiring task is forked. Every task has its own session
* and its own controlling terminal. If one of the tasks does handle a password, the remaining tasks will be
* terminated.
*/
+1 -1
View File
@@ -297,7 +297,7 @@ static void disk_identify_fixup_uint16 (uint8_t identify[512], unsigned offset_w
* disk_identify:
* @fd: File descriptor for the block device.
* @out_identify: Return location for IDENTIFY data.
* @out_is_packet_device: Return location for whether returned data is from a IDENTIFY PACKET DEVICE.
* @out_is_packet_device: Return location for whether returned data is from an IDENTIFY PACKET DEVICE.
*
* Sends the IDENTIFY DEVICE or IDENTIFY PACKET DEVICE command to the
* device represented by @fd. If successful, then the result will be