no warnings on linux

This commit is contained in:
Jesús A. Álvarez 2009-04-02 19:43:09 +00:00
parent f27a1382c0
commit a04f1d89e6
3 changed files with 4 additions and 3 deletions

View File

@ -3,7 +3,7 @@ LIB = libmfs.a
CC = gcc
AR = ar
RANLIB = ranlib
CFLAGS = -fPIC -std=c99 -I.. -DUSE_LIBRES
CFLAGS = -Wno-multichar -fPIC -std=c99 -I.. -DUSE_LIBRES
all: $(LIB)

4
fobj.h
View File

@ -1,5 +1,5 @@
// reverse engineered FOBJ resource
// values are big endian
struct __attribute__ ((__packed__)) FOBJrsrc {
int16_t fdType; // 8 = folder, 4 = disk
struct {
@ -14,4 +14,4 @@ struct __attribute__ ((__packed__)) FOBJrsrc {
uint16_t fdFlags; // finder flags
char _rsv4[]; // the resource is bigger
};
typedef struct FOBJrsrc FOBJrsrc;
typedef struct FOBJrsrc FOBJrsrc;

1
mfs.c
View File

@ -21,6 +21,7 @@
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#define __USE_BSD // linux strdup
#include <string.h>
#include <strings.h>
#include <errno.h>