Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Aug 2003 02:19:07 -0700 (PDT)
From:      Johan Karlsson <johan@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sbin/camcontrol Makefile camcontrol.c modeedit.c util.c
Message-ID:  <200308050919.h759J7an010486@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308050919.h759J7an010486>