remove a few compiler warnings
This commit is contained in:
parent
e89f098743
commit
f412a657fb
4
CAS.h
4
CAS.h
@ -1,5 +1,5 @@
|
||||
#ifndef _CAS_H
|
||||
#define _CAS_H
|
||||
#ifndef CAS_H
|
||||
#define CAS_H
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
|
4
iob.h
4
iob.h
@ -1,6 +1,6 @@
|
||||
/* this header file comes from libowfat, http://www.fefe.de/libowfat/ */
|
||||
#ifndef _IOB_H
|
||||
#define _IOB_H
|
||||
#ifndef IOB_H
|
||||
#define IOB_H
|
||||
|
||||
/* These functions can be used to create a queue of small (or large)
|
||||
* buffers and parts of files to be sent out over a socket. It is meant
|
||||
|
4
isset.h
4
isset.h
@ -1,6 +1,6 @@
|
||||
/* this header file comes from libowfat, http://www.fefe.de/libowfat/ */
|
||||
#ifndef _ISSET_H
|
||||
#define _ISSET_H
|
||||
#ifndef ISSET_H
|
||||
#define ISSET_H
|
||||
|
||||
/*
|
||||
How to check whether a preprocessor symbol is defined or not?
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* this header file comes from libowfat, http://www.fefe.de/libowfat/ */
|
||||
#ifndef _SAFEMULT_H
|
||||
#define _SAFEMULT_H
|
||||
#ifndef SAFEMULT_H
|
||||
#define SAFEMULT_H
|
||||
|
||||
#include "uint16.h"
|
||||
#include "uint32.h"
|
||||
|
4
uint16.h
4
uint16.h
@ -18,11 +18,11 @@ static inline void uint16_pack(char* out,uint16 in) {
|
||||
}
|
||||
|
||||
static inline void uint16_unpack(const char *in,uint16* out) {
|
||||
*out=*(uint16*)in;
|
||||
*out=*(const uint16*)in;
|
||||
}
|
||||
|
||||
static inline uint16 uint16_read(const char* in) {
|
||||
return *(uint16*)in;
|
||||
return *(const uint16*)in;
|
||||
}
|
||||
|
||||
void uint16_pack_big(char *out,uint16 in);
|
||||
|
4
uint32.h
4
uint32.h
@ -18,11 +18,11 @@ static inline void uint32_pack(char* out,uint32 in) {
|
||||
}
|
||||
|
||||
static inline void uint32_unpack(const char *in,uint32* out) {
|
||||
*out=*(uint32*)in;
|
||||
*out=*(const uint32*)in;
|
||||
}
|
||||
|
||||
static inline uint32 uint32_read(const char* in) {
|
||||
return *(uint32*)in;
|
||||
return *(const uint32*)in;
|
||||
}
|
||||
|
||||
void uint32_pack_big(char *out,uint32 in);
|
||||
|
Loading…
x
Reference in New Issue
Block a user