lkml.org 
[lkml]   [1996]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: 2.1.10 FYI

    In linux.dev.kernel you write:

    >sr.c: In function `sr_attach':
    >sr.c:796: warning: assignment of read-only member `speed'
    >sr.c:797: warning: assignment of read-only member `capacity'

    Yes, these are declared const in ucdrom.h, but they shoult'nt. These
    values depend on the drive you have, so you have to write in there
    something after checking drives capabilities.

    Gerd

    ---------------------------
    --- linux/include/linux/ucdrom.h-2.1.10 Fri Nov 15 22:41:29 1996
    +++ linux/include/linux/ucdrom.h Fri Nov 15 22:42:14 1996
    @@ -13,8 +13,8 @@
    /* specifications */
    kdev_t dev; /* device number */
    int mask; /* mask of capability: disables them */
    - const int speed; /* maximum speed for reading data */
    - const int capacity; /* number of discs in jukebox */
    + int speed; /* maximum speed for reading data */
    + int capacity; /* number of discs in jukebox */
    /* device-related storage */
    int options : 30; /* options flags */
    unsigned mc_flags : 2; /* media change buffer flags */
    \
     
     \ /
      Last update: 2005-03-22 13:38    [W:0.018 / U:0.532 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site