Assorted minor cleanups (#40136)

This commit is contained in:
Mike Yuan
2025-12-18 20:53:58 +01:00
committed by GitHub
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -16,11 +16,10 @@ void bus_manager_send_finished(
usec_t initrd_usec,
usec_t userspace_usec,
usec_t total_usec);
void bus_manager_send_reloading(Manager *m, bool active);
void bus_manager_send_change_signal(Manager *m);
int verify_run_space_and_log(const char *message);
int bus_property_get_oom_policy(
sd_bus *bus,
const char *path,
@@ -29,6 +28,7 @@ int bus_property_get_oom_policy(
sd_bus_message *reply,
void *userdata,
sd_bus_error *reterr_error);
int bus_property_get_emergency_action(
sd_bus *bus,
const char *path,
+1 -1
View File
@@ -113,7 +113,7 @@
/* How many units and jobs to process of the bus queue before returning to the event loop. */
#define MANAGER_BUS_MESSAGE_BUDGET 100U
#define DEFAULT_TASKS_MAX ((CGroupTasksMax) { 15U, 100U }) /* 15% */
#define DEFAULT_TASKS_MAX ((const CGroupTasksMax) { 15U, 100U }) /* 15% */
static int manager_dispatch_notify_fd(sd_event_source *source, int fd, uint32_t revents, void *userdata);
static int manager_dispatch_signal_fd(sd_event_source *source, int fd, uint32_t revents, void *userdata);
+1 -1
View File
@@ -341,7 +341,7 @@ static int on_first_event(sd_event_source *s, void *userdata) {
if (r < 0)
return r;
if (arg_follow && !arg_reverse && !c->has_cursor && !arg_since_set) {
if (arg_follow && !c->has_cursor && !arg_since_set) {
r = sd_journal_get_cursor(c->journal, /* ret_cursor= */ NULL);
if (r == -EADDRNOTAVAIL) {
/* If we shall operate in --follow mode, and we are unable to get a cursor after
+1 -1
View File
@@ -13,7 +13,7 @@ typedef enum SocketAddressBindIPv6Only {
const char* socket_address_bind_ipv6_only_to_string(SocketAddressBindIPv6Only b) _const_;
SocketAddressBindIPv6Only socket_address_bind_ipv6_only_from_string(const char *s) _pure_;
SocketAddressBindIPv6Only socket_address_bind_ipv6_only_or_bool_from_string(const char *s);
SocketAddressBindIPv6Only socket_address_bind_ipv6_only_or_bool_from_string(const char *s) _pure_;
int socket_address_listen(
const SocketAddress *a,