fix some gcc warnings

This commit is contained in:
rofl0r 2012-06-23 16:46:01 +02:00
parent ebcf9189b1
commit 41c2be9461
5 changed files with 14 additions and 8 deletions

7
path.h Normal file
View File

@ -0,0 +1,7 @@
#ifndef PATH_H
#define PATH_H
char *path_search(char *name, char *mode, char *path);
#endif

View File

@ -8,12 +8,11 @@
#include "defs.h"
#include "rc.h"
#include "hw.h"
#include "path.h"
char *rcpath;
char *path_search();
int rc_sourcefile(char *filename)
{
FILE *f;

View File

@ -1,10 +1,10 @@
#undef _GNU_SOURCE
#define _GNU_SOURCE
#include <string.h>
#include <stdlib.h>
#include <string.h>
char *strdup();
#include "defs.h"
#include "rc.h"

4
rtc.c
View File

@ -95,9 +95,9 @@ void rtc_tick()
void rtc_save_internal(FILE *f)
{
fprintf(f, "%d %d %d %02d %02d %02d %02d\n%d\n",
fprintf(f, "%d %d %d %02d %02d %02d %02d\n%ld\n",
rtc.carry, rtc.stop, rtc.d, rtc.h, rtc.m, rtc.s, rtc.t,
time(0));
(long) time(0));
}
void rtc_load_internal(FILE *f)

View File

@ -218,7 +218,7 @@ void vid_init()
if (vmode[1] > vi.yres) vmode[1] = vi.yres;
mmio = mmap(0, fi.mmio_len, PROT_READ|PROT_WRITE, MAP_SHARED, fbfd, fi.smem_len);
if ((int)mmio == -1) mmio = 0;
if ((long)mmio == -1) mmio = 0;
overlay_init();