[Mit-cadr-cvs] r362 - trunk/emulator/usim
ggilley at common-lisp.net
ggilley at common-lisp.net
Tue Nov 27 20:11:19 UTC 2012
Author: ggilley
Date: Tue Nov 27 12:11:17 2012
New Revision: 362
Log:
fix some warnings
Modified:
trunk/emulator/usim/lmfs.c
trunk/emulator/usim/lod.c
trunk/emulator/usim/x11.c
Modified: trunk/emulator/usim/lmfs.c
==============================================================================
--- trunk/emulator/usim/lmfs.c Tue Nov 27 09:35:46 2012 (r361)
+++ trunk/emulator/usim/lmfs.c Tue Nov 27 12:11:17 2012 (r362)
@@ -20,9 +20,9 @@
/* ---------------------------------------------------------------- */
typedef struct {
- char buffer[8192];
+ unsigned char buffer[8192];
- char *base;
+ unsigned char *base;
int offset;
int record_no;
int fd;
@@ -45,7 +45,7 @@
*/
void *ensure_access(baccess *pb, int offset, int size)
{
- char *ptr;
+ unsigned char *ptr;
int blknum, boff, left, do_pad;
blknum = offset / 1008;
@@ -73,7 +73,7 @@
void *advance_access(baccess *pb, int size)
{
- char *ptr;
+ unsigned char *ptr;
int blknum, boff, left;
pb->offset += size;
@@ -381,7 +381,7 @@
read_record(baccess *pb, int record_no)
{
int i, block_no;
- char *pbuf;
+ unsigned char *pbuf;
block_no = record_no * 4;
pbuf = pb->buffer;
@@ -600,7 +600,7 @@
printf("byte_length %d\n", de->byte_length);
printf("number_of_records %d\n", de->number_of_records);
printf("record_0_address %d\n", de->record_0_address);
- printf("size %d\n", sizeof(struct directory_entry_s));
+ printf("size %ld\n", sizeof(struct directory_entry_s));
show_file(fd, de, de->record_0_address);
// show_de(fd, de->record_0_address);
@@ -715,7 +715,7 @@
de->author);
printf("number_of_records %d\n", de->number_of_records);
printf("record_0_address %d\n", de->record_0_address);
- printf("size %d\n", sizeof(struct directory_entry_s));
+ printf("size %ld\n", sizeof(struct directory_entry_s));
show_de(fd, de->record_0_address);
}
Modified: trunk/emulator/usim/lod.c
==============================================================================
--- trunk/emulator/usim/lod.c Tue Nov 27 09:35:46 2012 (r361)
+++ trunk/emulator/usim/lod.c Tue Nov 27 12:11:17 2012 (r362)
@@ -154,7 +154,7 @@
if (b != bnum) {
bnum = b;
- if (0) printf("fd %d, block %d(10) offset %ld\n",
+ if (0) printf("fd %d, block %d(10) offset %lld\n",
fd, b, offset);
ret = lseek(fd, offset, SEEK_SET);
Modified: trunk/emulator/usim/x11.c
==============================================================================
--- trunk/emulator/usim/x11.c Tue Nov 27 09:35:46 2012 (r361)
+++ trunk/emulator/usim/x11.c Tue Nov 27 12:11:17 2012 (r362)
@@ -19,6 +19,8 @@
#include "logo.h"
extern int run_ucode_flag;
+extern void iob_sdl_key_event(int code, int extra);
+extern void iob_sdl_mouse_event(int x, int y, int dx, int dy, int buttons);
static unsigned int video_width = 768;
static unsigned int video_height = 897 /*1024*/;
@@ -374,4 +376,5 @@
ximage = XCreateImage(display, visual, (unsigned)color_depth, ZPixmap, 0,
(char *) tv_bitmap, video_width, video_height, 32, 0);
ximage->byte_order = LSBFirst;
+ return 0;
}
More information about the mit-cadr-cvs
mailing list