Skip to content

Commit

Permalink
Don't typedef BufferedWriter twice
Browse files Browse the repository at this point in the history
It upset older compilers

Signed-off-by: Olivier Mehani <[email protected]>
  • Loading branch information
shtrom committed Jun 29, 2015
1 parent ca95798 commit 7f0215b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/client/buffered_writer.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ typedef struct BufferChunk {
} BufferChunk;

/** A writer reading from a chain of BufferChunks */
typedef struct BufferedWriter {
struct BufferedWriter {
/** Set to !0 if buffer is active; 0 kills the thread */
int active;

Expand Down Expand Up @@ -86,7 +86,7 @@ typedef struct BufferedWriter {

int nlost; /**< Number of lost messages since last query */

} BufferedWriter;
};
#define REATTEMP_INTERVAL 5 //! Seconds to open the stream again

static BufferChunk* getNextWriteChunk(BufferedWriter* self, BufferChunk* current);
Expand Down
2 changes: 1 addition & 1 deletion lib/client/buffered_writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
#ifndef OML_BUFFERED_WRITER_H_
#define OML_BUFFERED_WRITER_H_

#include "mbuf.h"
#include "oml2/oml_out_stream.h"
#include "mbuf.h"

typedef void* BufferedWriterHdl;

Expand Down

0 comments on commit 7f0215b

Please sign in to comment.