Skip to contentSkip to conversation

Missing const in sr_vendor

PATCH New Matthew Wilcox 1 participant 1 message Dec 17, 2005 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Missing const in sr_vendor

Fix compile warnings with current scsi-misc git tree

drivers/scsi/sr_vendor.c +2 -2
index 78274dc..9dde8df 100644
@@ -68,8 +68,8 @@ void sr_vendor_init(Scsi_CD *cd)
 #ifndef CONFIG_BLK_DEV_SR_VENDOR
 	cd->vendor = VENDOR_SCSI3;
 #else
-	char *vendor = cd->device->vendor;
-	char *model = cd->device->model;
+	const char *vendor = cd->device->vendor;
+	const char *model = cd->device->model;
 	
 	/* default */
 	cd->vendor = VENDOR_SCSI3;