mirror of
https://github.com/systemd/systemd.git
synced 2025-08-30 05:49:54 +03:00
core: constify a few things
This commit is contained in:
@ -44,7 +44,7 @@ FDSet *fdset_new(void) {
|
|||||||
return MAKE_FDSET(set_new(NULL));
|
return MAKE_FDSET(set_new(NULL));
|
||||||
}
|
}
|
||||||
|
|
||||||
int fdset_new_array(FDSet **ret, int *fds, unsigned n_fds) {
|
int fdset_new_array(FDSet **ret, const int *fds, unsigned n_fds) {
|
||||||
unsigned i;
|
unsigned i;
|
||||||
FDSet *s;
|
FDSet *s;
|
||||||
int r;
|
int r;
|
||||||
|
@ -35,7 +35,7 @@ int fdset_consume(FDSet *s, int fd);
|
|||||||
bool fdset_contains(FDSet *s, int fd);
|
bool fdset_contains(FDSet *s, int fd);
|
||||||
int fdset_remove(FDSet *s, int fd);
|
int fdset_remove(FDSet *s, int fd);
|
||||||
|
|
||||||
int fdset_new_array(FDSet **ret, int *fds, unsigned n_fds);
|
int fdset_new_array(FDSet **ret, const int *fds, unsigned n_fds);
|
||||||
int fdset_new_fill(FDSet **ret);
|
int fdset_new_fill(FDSet **ret);
|
||||||
int fdset_new_listen_fds(FDSet **ret, bool unset);
|
int fdset_new_listen_fds(FDSet **ret, bool unset);
|
||||||
|
|
||||||
|
@ -1488,7 +1488,7 @@ static unsigned manager_dispatch_dbus_queue(Manager *m) {
|
|||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void manager_invoke_notify_message(Manager *m, Unit *u, pid_t pid, char *buf, size_t n, FDSet *fds) {
|
static void manager_invoke_notify_message(Manager *m, Unit *u, pid_t pid, const char *buf, size_t n, FDSet *fds) {
|
||||||
_cleanup_strv_free_ char **tags = NULL;
|
_cleanup_strv_free_ char **tags = NULL;
|
||||||
|
|
||||||
assert(m);
|
assert(m);
|
||||||
@ -1618,7 +1618,7 @@ static int manager_dispatch_notify_fd(sd_event_source *source, int fd, uint32_t
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void invoke_sigchld_event(Manager *m, Unit *u, siginfo_t *si) {
|
static void invoke_sigchld_event(Manager *m, Unit *u, const siginfo_t *si) {
|
||||||
assert(m);
|
assert(m);
|
||||||
assert(u);
|
assert(u);
|
||||||
assert(si);
|
assert(si);
|
||||||
|
Reference in New Issue
Block a user