core: constify a few things
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user