02.06.2010

parent 56175a0b
...@@ -2679,7 +2679,7 @@ int parse_cmdline_option (struct uae_prefs *p, char c, char *arg) ...@@ -2679,7 +2679,7 @@ int parse_cmdline_option (struct uae_prefs *p, char c, char *arg)
case 'r': strncpy (p->romfile, arg, 255); p->romfile[255] = 0; break; case 'r': strncpy (p->romfile, arg, 255); p->romfile[255] = 0; break;
case 'K': strncpy (p->keyfile, arg, 255); p->keyfile[255] = 0; break; case 'K': strncpy (p->keyfile, arg, 255); p->keyfile[255] = 0; break;
case 'p': strncpy (p->prtname, arg, 255); p->prtname[255] = 0; break; case 'p': strncpy (p->prtname, arg, 255); p->prtname[255] = 0; break;
/* case 'I': strncpy (p->sername, arg, 255); p->sername[255] = 0; currprefs.use_serial = 1; break; */ case 'I': strncpy (p->sername, arg, 255); p->sername[255] = 0; currprefs.use_serial = 1; break;
case 'm': case 'M': parse_filesys_spec (c == 'M', arg); break; case 'm': case 'M': parse_filesys_spec (c == 'M', arg); break;
case 'W': parse_hardfile_spec (arg); break; case 'W': parse_hardfile_spec (arg); break;
case 'S': parse_sound_spec (p, arg); break; case 'S': parse_sound_spec (p, arg); break;
......
...@@ -3086,6 +3086,7 @@ void DSKLEN (uae_u16 v, unsigned int hpos) ...@@ -3086,6 +3086,7 @@ void DSKLEN (uae_u16 v, unsigned int hpos)
int motormask; int motormask;
DISK_update (hpos); DISK_update (hpos);
if ((v & 0x8000) && (dsklen & 0x8000)) { if ((v & 0x8000) && (dsklen & 0x8000)) {
dskdmaen = 2; dskdmaen = 2;
DISK_start (); DISK_start ();
......
...@@ -2897,7 +2897,7 @@ static void ...@@ -2897,7 +2897,7 @@ static void
put_long (info + 120, entrytype); put_long (info + 120, entrytype);
TRACE(("name=\"%s\"\n", xs)); TRACE(("name=\"%s\"\n", xs));
x2 = x = ua_fs (xs, -1); x = ua_fs (xs, -1);
n = strlen (x); n = strlen (x);
if (n > 106) if (n > 106)
n = 106; n = 106;
...@@ -2907,7 +2907,6 @@ static void ...@@ -2907,7 +2907,6 @@ static void
put_byte (info + i, *x), i++, x++; put_byte (info + i, *x), i++, x++;
while (i < 108) while (i < 108)
put_byte (info + i, 0), i++; put_byte (info + i, 0), i++;
xfree (x2);
#if defined TARGET_AMIGAOS && defined WORDS_BIGENDIAN #if defined TARGET_AMIGAOS && defined WORDS_BIGENDIAN
BPTR lock; BPTR lock;
...@@ -2943,7 +2942,7 @@ static void ...@@ -2943,7 +2942,7 @@ static void
xs = aino->comment; xs = aino->comment;
if (!xs) if (!xs)
xs= ""; xs= "";
x2 = x = ua_fs (xs, -1); x = ua_fs (xs, -1);
n = strlen (x); n = strlen (x);
if (n > 78) if (n > 78)
n = 78; n = 78;
...@@ -2952,7 +2951,6 @@ static void ...@@ -2952,7 +2951,6 @@ static void
put_byte (info + i, *x), i++, x++; put_byte (info + i, *x), i++, x++;
while (i < 224) while (i < 224)
put_byte (info + i, 0), i++; put_byte (info + i, 0), i++;
xfree (x2);
} }
PUT_PCK_RES1 (packet, DOS_TRUE); PUT_PCK_RES1 (packet, DOS_TRUE);
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -198,7 +198,11 @@ int get_fs_usage (const char *path, const char *disk, struct fs_usage *fsp) ...@@ -198,7 +198,11 @@ int get_fs_usage (const char *path, const char *disk, struct fs_usage *fsp)
Return the actual number of bytes read, zero for EOF, or negative Return the actual number of bytes read, zero for EOF, or negative
for an error. */ for an error. */
static int safe_read (int desc, char *ptr, int len) static int
safe_read (desc, ptr, len)
int desc;
char *ptr;
int len;
{ {
int n_chars; int n_chars;
...@@ -226,7 +230,7 @@ static int safe_read (int desc, char *ptr, int len) ...@@ -226,7 +230,7 @@ static int safe_read (int desc, char *ptr, int len)
ERRNO is either a system error value, or zero if DISK is NULL ERRNO is either a system error value, or zero if DISK is NULL
on a system that requires a non-NULL value. */ on a system that requires a non-NULL value. */
int int
get_fs_usage (path, disk, fsp) get_fs_usage (path, disk, fsp)
const char *path; const char *path;
const char *disk; const char *disk;
struct fs_usage *fsp; struct fs_usage *fsp;
...@@ -380,7 +384,7 @@ get_fs_usage (path, disk, fsp) ...@@ -380,7 +384,7 @@ get_fs_usage (path, disk, fsp)
/* AIX PS/2 does not supply statfs. */ /* AIX PS/2 does not supply statfs. */
int int
statfs (path, fsb) statfs (path, fsb)
char *path; char *path;
struct statfs *fsb; struct statfs *fsb;
{ {
......
...@@ -445,7 +445,7 @@ configure:4344: $? = 0 ...@@ -445,7 +445,7 @@ configure:4344: $? = 0
configure:4344: result: yes configure:4344: result: yes
configure:4350: checking for _doprnt configure:4350: checking for _doprnt
configure:4350: gcc -o conftest -g -O2 -Wall -W -Wno-unused conftest.c >&5 configure:4350: gcc -o conftest -g -O2 -Wall -W -Wno-unused conftest.c >&5
/tmp/ccvIP0rc.o: In function `main': /tmp/ccQVX6ss.o: In function `main':
/home/gnostic/puaex/src/tools/conftest.c:67: undefined reference to `_doprnt' /home/gnostic/puaex/src/tools/conftest.c:67: undefined reference to `_doprnt'
collect2: ld returned 1 exit status collect2: ld returned 1 exit status
configure:4350: $? = 1 configure:4350: $? = 1
...@@ -533,7 +533,7 @@ configure:4364: $? = 0 ...@@ -533,7 +533,7 @@ configure:4364: $? = 0
configure:4364: result: yes configure:4364: result: yes
configure:4364: checking for strcmpi configure:4364: checking for strcmpi
configure:4364: gcc -o conftest -g -O2 -Wall -W -Wno-unused conftest.c >&5 configure:4364: gcc -o conftest -g -O2 -Wall -W -Wno-unused conftest.c >&5
/tmp/ccrvPcpr.o: In function `main': /tmp/ccML3BqH.o: In function `main':
/home/gnostic/puaex/src/tools/conftest.c:69: undefined reference to `strcmpi' /home/gnostic/puaex/src/tools/conftest.c:69: undefined reference to `strcmpi'
collect2: ld returned 1 exit status collect2: ld returned 1 exit status
configure:4364: $? = 1 configure:4364: $? = 1
...@@ -613,7 +613,7 @@ configure: failed program was: ...@@ -613,7 +613,7 @@ configure: failed program was:
configure:4364: result: no configure:4364: result: no
configure:4364: checking for stricmp configure:4364: checking for stricmp
configure:4364: gcc -o conftest -g -O2 -Wall -W -Wno-unused conftest.c >&5 configure:4364: gcc -o conftest -g -O2 -Wall -W -Wno-unused conftest.c >&5
/tmp/ccc5rzSv.o: In function `main': /tmp/ccLZtbQE.o: In function `main':
/home/gnostic/puaex/src/tools/conftest.c:69: undefined reference to `stricmp' /home/gnostic/puaex/src/tools/conftest.c:69: undefined reference to `stricmp'
collect2: ld returned 1 exit status collect2: ld returned 1 exit status
configure:4364: $? = 1 configure:4364: $? = 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment