parse_sun.c: get rid of unused optlen variable
PATCH 1/1 parse_sun.c: get rid of unused optlen variable
I couldn't find a reason to keep this around. We don't walk this options string, so it isn't used to make sure we don't walk off the end. So, get rid of it.
Cheers,
Jeff
Signed-off-by Jeff Moyer <[email protected]>
modules/parse_sun.c +1 -2
@@ -1334,7 +1334,7 @@ int parse_mount(struct autofs_point *ap, const char *name,char *pmapent, *options;const char *p;int mapent_len, rv =0 ; -int optlen, cur_state; +int cur_state;int slashify = ctxt->slashify_colons;unsigned int append_options;
@@ -1389,7 +1389,6 @@ int parse_mount(struct autofs_point *ap, const char *name,logerr (MODPREFIX "strdup: %s" , estr);return 1 ; } - optlen =strlen (options); p =skipspace (pmapent);