patch-1.3.15 linux/drivers/block/floppy.c
Next file: linux/drivers/block/genhd.c
Previous file: linux/drivers/block/cm206.c
Back to the patch index
Back to the overall index
- Lines: 76
- Date:
Tue Aug 1 10:02:31 1995
- Orig file:
v1.3.14/linux/drivers/block/floppy.c
- Orig date:
Mon Jul 31 15:59:00 1995
diff -u --recursive --new-file v1.3.14/linux/drivers/block/floppy.c linux/drivers/block/floppy.c
@@ -311,7 +311,7 @@
*/
static struct {
struct floppy_drive_params params;
- char *name; /* name printed while booting */
+ const char *name; /* name printed while booting */
} default_drive_params[]= {
/* NOTE: the time values in jiffies should be in msec!
CMOS drive type
@@ -545,7 +545,7 @@
#endif
}
-static inline void debugt(char *message)
+static inline void debugt(const char *message)
{
#ifdef DEBUGT
if ( DP->flags & DEBUGT )
@@ -557,10 +557,10 @@
static struct timer_list fd_timeout ={ NULL, NULL, 0, 0,
(timeout_fn) floppy_shutdown };
-static char *timeout_message;
+static const char *timeout_message;
#ifdef CONFIG_FLOPPY_SANITY
-static void is_alive(char *message)
+static void is_alive(const char *message)
{
/* this routine checks whether the floppy driver is "alive" */
if (fdc_busy && command_status < 2 && !fd_timeout.prev){
@@ -593,7 +593,7 @@
-static void reschedule_timeout(int drive, char *message, int marg)
+static void reschedule_timeout(int drive, const char *message, int marg)
{
if (drive == CURRENTD )
drive = current_drive;
@@ -2801,7 +2801,7 @@
#define COPYOUT(x) (fd_copyout( (void *)param, &(x), sizeof(x)))
#define COPYIN(x) (memcpy_fromfs( &(x), (void *) param, sizeof(x)),0)
-static char *drive_name(int type, int drive )
+static const char *drive_name(int type, int drive )
{
struct floppy_struct *floppy;
@@ -2924,7 +2924,7 @@
struct format_descr tmp_format_req;
int i,device,drive,type,cnt;
struct floppy_struct *this_floppy;
- char *name;
+ const char *name;
device = inode->i_rdev;
switch (cmd) {
@@ -3151,7 +3151,7 @@
}
static int floppy_write(struct inode * inode, struct file * filp,
- char * buf, int count)
+ const char * buf, int count)
{
int block;
int ret;
@@ -3523,7 +3523,7 @@
}
static struct param_table {
- char *name;
+ const char *name;
void (*fn)(int *ints, int param);
int def_param;
} config_params[]={
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this