summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-28 12:43:52 +0100
committerLennart Poettering <lennart@poettering.net>2015-10-31 19:09:20 +0100
commit96d66d89c9ba3cc936a8d8217370c70292a6abb7 (patch)
tree1a7fc31fe606e23edda4dd6c941ab4488a44b10d /src/basic
parentb41b9d2ae9d1139a3d4d5eb7ad7b100ffa3ee6db (diff)
core: constify a few things
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/fdset.c2
-rw-r--r--src/basic/fdset.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/fdset.c b/src/basic/fdset.c
index 4b11e4ea09..42b0b2b98f 100644
--- a/src/basic/fdset.c
+++ b/src/basic/fdset.c
@@ -44,7 +44,7 @@ FDSet *fdset_new(void) {
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;
FDSet *s;
int r;
diff --git a/src/basic/fdset.h b/src/basic/fdset.h
index 340438d7c4..70d8acbcff 100644
--- a/src/basic/fdset.h
+++ b/src/basic/fdset.h
@@ -35,7 +35,7 @@ int fdset_consume(FDSet *s, int fd);
bool fdset_contains(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_listen_fds(FDSet **ret, bool unset);