]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mount/parse_opt.c
text-based mount.nfs: add a few useful parser return codes
[nfs-utils.git] / utils / mount / parse_opt.c
index fb4a0e4e800553bb0e949274fb3699a4191bc932..f2531422172844b9d1127671035f58fc482795ab 100644 (file)
@@ -394,9 +394,9 @@ int po_rightmost(struct mount_options *options, char *key1, char *key2)
        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;
                }
        }