main: split out reading of /proc/sys/fs/nr_open into its own function

This doesn't really reduce the code size over all, but it does make main.c
shorter and more readable, and that's always a good thing.
This commit is contained in:
Lennart Poettering
2018-06-06 14:39:15 +02:00
parent 0e37c169fb
commit 9264cc39ce
4 changed files with 38 additions and 15 deletions
+2
View File
@@ -108,3 +108,5 @@ static inline int make_null_stdio(void) {
})
int fd_reopen(int fd, int flags);
int read_nr_open(void);