cvs commit: src/sbin/camcontrol Makefile camcontrol.c modeedit.c
util.c
Johan Karlsson
johan at FreeBSD.org
Tue Aug 5 02:19:08 PDT 2003
johan 2003/08/05 02:19:07 PDT
FreeBSD src repository
Modified files:
sbin/camcontrol Makefile camcontrol.c modeedit.c util.c
Log:
Make this WARNS=6 clean by:
1: add 'const' to char * where needed;
2: mark unused variables with __unused;
3: remove double prototypes for mode_edit and mode_list.
4: moves the global variables 'bus', 'target', and 'lun' into
the main function and protect them with #ifndef MINIMALISTIC,
5: renames 3 variable in order not to shadow other things
index -> indx -- in modepage_dump since index is a function
from <strings.h.>
arglist -> arglst -- in the function parse_btl since arglist
is also a global variable
convertend -> convertend2 -- in the function editentry_set
since that name is used two times within the function.
6: cast 0xffffffff in the macro RESOLUTION_MAX(size) to (int)
since it is unsigned otherwise.
Tested by: make universe
Approved by: ken
Revision Changes Path
1.15 +1 -1 src/sbin/camcontrol/Makefile
1.51 +18 -15 src/sbin/camcontrol/camcontrol.c
1.15 +21 -24 src/sbin/camcontrol/modeedit.c
1.10 +1 -1 src/sbin/camcontrol/util.c
More information about the cvs-src
mailing list