Messages in this thread Patch in this message |  | | Date | Fri, 15 Nov 1996 22:58:11 +0100 | From | Gerd Knorr <> | Subject | Re: 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 */
|  |