Browse Source

remove a few compiler warnings

master
Felix von Leitner 3 years ago
parent
commit
4c1467db0d
6 changed files with 12 additions and 12 deletions
  1. +2
    -2
      CAS.h
  2. +2
    -2
      iob.h
  3. +2
    -2
      isset.h
  4. +2
    -2
      safemult.h
  5. +2
    -2
      uint16.h
  6. +2
    -2
      uint32.h

+ 2
- 2
CAS.h View File

@@ -1,5 +1,5 @@
#ifndef _CAS_H
#define _CAS_H
#ifndef CAS_H
#define CAS_H

#include <stddef.h>



+ 2
- 2
iob.h View File

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


+ 2
- 2
isset.h View File

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


+ 2
- 2
safemult.h View File

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


+ 2
- 2
uint16.h View File

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


+ 2
- 2
uint32.h View File

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