Modify mount_propagation_flags_from_string to return a normal int code

This means that callers can distiguish an error from flags==0,
and don't have to special-case the empty string.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2016-12-17 13:57:04 -05:00
parent 117d5a27a3
commit c73838280c
6 changed files with 44 additions and 46 deletions
+1 -1
View File
@@ -63,4 +63,4 @@ int mount_verbose(
int umount_verbose(const char *where);
const char *mount_propagation_flags_to_string(unsigned long flags);
unsigned long mount_propagation_flags_from_string(const char *name);
int mount_propagation_flags_from_string(const char *name, unsigned long *ret);