I forgot to add symbolic return codes for po_rightmost(). Add return codes
for PO_KEY1_RIGHTMOST and PO_KEY2_RIGHTMOST.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
if (options) {
for (option = options->tail; option; option = option->prev) {
if (key2 && strcmp(option->keyword, key2) == 0)
- return 1;
+ return PO_KEY2_RIGHTMOST;
if (key1 && strcmp(option->keyword, key1) == 0)
- return -1;
+ return PO_KEY1_RIGHTMOST;
}
}
PO_FOUND = 1,
};
+enum {
+ PO_KEY2_RIGHTMOST = 1,
+ PO_KEY1_RIGHTMOST = -1,
+};
+
struct mount_options;
struct mount_options * po_split(char *);