fix some gcc warnings
This commit is contained in:
parent
ebcf9189b1
commit
41c2be9461
|
@ -0,0 +1,7 @@
|
|||
#ifndef PATH_H
|
||||
#define PATH_H
|
||||
|
||||
char *path_search(char *name, char *mode, char *path);
|
||||
|
||||
#endif
|
||||
|
3
rcfile.c
3
rcfile.c
|
@ -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;
|
||||
|
|
6
rckeys.c
6
rckeys.c
|
@ -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
4
rtc.c
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue