rem: mmc_profile = get_mmc_profile ((void *)fd);
add: mmc_profile = get_mmc_profile ((void *)&fd);
context: linux_bsd_media_type (const char *device){	int fd;	int mmc_profile;	fd = open (device, O_RDONLY);	if (fd < 0) {		return CD_MEDIA_TYPE_ERROR;	}	mmc_profile = get_mmc_profile ((void *)fd);	close (fd);	switch (mmc_profile) {	case -1:        /* Couldn't get the data about the media */		return CD_MEDIA_TYPE_UNKNOWN;	case 0x8:	/* Commercial CDs and Audio CD	*/		return CD_MEDIA_TYPE_CD;	case 0x9:	/* CD-R                         */		return CD_MEDIA_TYPE_CDR;	case 0xa:	/* CD-RW			*/		return CD_MEDIA_TYPE_CDRW;	case 0x10:	/* Commercial DVDs		*/		return CD_MEDIA_TYPE_DVD;	case 0x11:      /* DVD-R                        */		return CD_MEDIA_TYPE_DVDR;	case 0x13:      /* DVD-RW Restricted Overwrite  */	case 0x14:      /* DVD-RW Sequential            */		return CD_MEDIA_TYPE_DVDRW;	case 0x1B:      /* DVD+R                        */		return CD_MEDIA_TYPE_DVD_PLUS_R;	case 0x1A:      /* DVD+RW                       */		return CD_MEDIA_TYPE_DVD_PLUS_RW;	case 0x12:      /* DVD-RAM                      */		return CD_MEDIA_TYPE_DVD_RAM;	default:		return CD_MEDIA_TYPE_UNKNOWN;	}}