Browse Source

remove a few compiler warnings

master
Felix von Leitner 4 years ago
parent
commit
4c1467db0d
  1. 4
      CAS.h
  2. 4
      iob.h
  3. 4
      isset.h
  4. 4
      safemult.h
  5. 4
      uint16.h
  6. 4
      uint32.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

@ -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

@ -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?

4
safemult.h

@ -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

@ -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

@ -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…
Cancel
Save