8717 autofs: parameter/variable set but not used

Review Request #674 - Created Oct. 13, 2017 and submitted

Information
Toomas Soome
illumos-gate
8717
be47c12...
Reviewers
general
ns_files.c: In function 'call_read_execout':
ns_files.c:684:37: error: parameter 'lp' set but not used [-Werror=unused-but-set-parameter]
 call_read_execout(char *key, char **lp, char *fname, char *line,
                                     ^~

autod_nfs.c: In function 'read_default_nfs':
autod_nfs.c:3985:16: error: variable 'lastread' set but not used [-Werror=unused-but-set-variable]
  static time_t lastread = 0;
                ^~~~~~~~

cc1: all warnings being treated as errors

did add entry into auto_master:
/test auto_exec

and the script has:
root@beastie:/test# more /etc/auto_exec

!/bin/sh

echo "localhost:/export/&"
exit 0

and verified the mounts are done - so the exec maps are still working as expected.

Issues

  • 0
  • 1
  • 0
  • 1
Description From Last Updated
C Fraire
Igor Kozhukhov
Robert Mustacchi
Toomas Soome
Toomas Soome
Robert Mustacchi
C Fraire
Toomas Soome
Igor Kozhukhov
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...