Lint-like things.

Add X-BOX detection courtesy of the xmbc project.
This commit is contained in:
rocky
2004-06-19 19:15:15 +00:00
parent 001bd6360b
commit e1808fb407
10 changed files with 66 additions and 34 deletions

View File

@@ -1,5 +1,5 @@
/*
$Id: cd-info.c,v 1.67 2004/06/19 10:38:07 rocky Exp $
$Id: cd-info.c,v 1.68 2004/06/19 19:15:15 rocky Exp $
Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com>
Copyright (C) 1996, 1997, 1998 Gerd Knorr <kraxel@bytesex.org>
@@ -667,7 +667,7 @@ print_analysis(int ms_offset, cdio_iso_analysis_t cdio_iso_analysis,
printf("CD-ROM with Unix UFS\n");
break;
case CDIO_FS_EXT2:
printf("CD-ROM with Linux second extended filesystem\n");
printf("CD-ROM with GNU/Linux EXT2 (native) filesystem\n");
break;
case CDIO_FS_3DO:
printf("CD-ROM with Panasonic 3DO filesystem\n");
@@ -675,6 +675,9 @@ print_analysis(int ms_offset, cdio_iso_analysis_t cdio_iso_analysis,
case CDIO_FS_UNKNOWN:
printf("CD-ROM with unknown filesystem\n");
break;
case CDIO_FS_XISO:
printf("CD-ROM with Microsoft X-BOX XISO filesystem\n");
break;
}
switch(CDIO_FSTYPE(fs)) {
case CDIO_FS_ISO_9660:

View File

@@ -1,5 +1,5 @@
/*
$Id: iso-info.c,v 1.8 2004/06/19 10:38:07 rocky Exp $
$Id: iso-info.c,v 1.9 2004/06/19 19:15:15 rocky Exp $
Copyright (C) 2004 Rocky Bernstein <rocky@panix.com>
@@ -38,7 +38,9 @@
#include <stdio.h>
#include <errno.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/types.h>
#include <errno.h>

View File

@@ -1,5 +1,5 @@
/*
$Id: util.c,v 1.7 2004/04/25 14:07:23 rocky Exp $
$Id: util.c,v 1.8 2004/06/19 19:15:15 rocky Exp $
Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com>
@@ -75,11 +75,11 @@ fillout_device_name(const char *device_name)
#if defined(HAVE_WIN32_CDROM)
return strdup(device_name);
#else
unsigned int prefix_len=strlen(DEV_PREFIX);
unsigned int prefix_len = strlen(DEV_PREFIX);
if (0 == strncmp(device_name, DEV_PREFIX, prefix_len))
return strdup(device_name);
else {
char *full_device_name=malloc(strlen(device_name)+prefix_len);
char *full_device_name = (char*) malloc(strlen(device_name)+prefix_len);
sprintf(full_device_name, DEV_PREFIX "%s", device_name);
return full_device_name;
}