remove a few compiler warnings

master
leitner 8 years ago
parent e89f098743
commit f412a657fb

@ -1,5 +1,5 @@
#ifndef _CAS_H #ifndef CAS_H
#define _CAS_H #define CAS_H
#include <stddef.h> #include <stddef.h>

@ -1,6 +1,6 @@
/* this header file comes from libowfat, http://www.fefe.de/libowfat/ */ /* this header file comes from libowfat, http://www.fefe.de/libowfat/ */
#ifndef _IOB_H #ifndef IOB_H
#define _IOB_H #define IOB_H
/* These functions can be used to create a queue of small (or large) /* 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 * buffers and parts of files to be sent out over a socket. It is meant

@ -1,6 +1,6 @@
/* this header file comes from libowfat, http://www.fefe.de/libowfat/ */ /* this header file comes from libowfat, http://www.fefe.de/libowfat/ */
#ifndef _ISSET_H #ifndef ISSET_H
#define _ISSET_H #define ISSET_H
/* /*
How to check whether a preprocessor symbol is defined or not? 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/ */ /* this header file comes from libowfat, http://www.fefe.de/libowfat/ */
#ifndef _SAFEMULT_H #ifndef SAFEMULT_H
#define _SAFEMULT_H #define SAFEMULT_H
#include "uint16.h" #include "uint16.h"
#include "uint32.h" #include "uint32.h"

@ -18,11 +18,11 @@ static inline void uint16_pack(char* out,uint16 in) {
} }
static inline void uint16_unpack(const char *in,uint16* out) { 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) { static inline uint16 uint16_read(const char* in) {
return *(uint16*)in; return *(const uint16*)in;
} }
void uint16_pack_big(char *out,uint16 in); void uint16_pack_big(char *out,uint16 in);

@ -18,11 +18,11 @@ static inline void uint32_pack(char* out,uint32 in) {
} }
static inline void uint32_unpack(const char *in,uint32* out) { 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) { static inline uint32 uint32_read(const char* in) {
return *(uint32*)in; return *(const uint32*)in;
} }
void uint32_pack_big(char *out,uint32 in); void uint32_pack_big(char *out,uint32 in);

Loading…
Cancel
Save