Skip to content

Commit

Permalink
Fix symbol conflicts with libmagic
Browse files Browse the repository at this point in the history
  • Loading branch information
meme authored and trufae committed Feb 20, 2024
1 parent d051f19 commit ba40047
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/sdb/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ typedef struct buffer {
#define BUFFER_INSIZE 8192
#define BUFFER_OUTSIZE 8192

void buffer_init(buffer *,BufferOp,int,char *,unsigned int);
void buffer_initialize(buffer *,BufferOp,int,char *,unsigned int);

int buffer_flush(buffer *);
int buffer_put(buffer *,const char *,unsigned int);
Expand Down
2 changes: 1 addition & 1 deletion src/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "sdb/buffer.h"

void buffer_init(buffer *s, BufferOp op, int fd, char *buf, ut32 len) {
void buffer_initialize(buffer *s, BufferOp op, int fd, char *buf, ut32 len) {
s->x = buf;
s->fd = fd;
s->op = op;
Expand Down
2 changes: 1 addition & 1 deletion src/cdb_make.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ int cdb_make_start(struct cdb_make *c, int fd) {
c->numentries = 0;
c->fd = fd;
c->pos = sizeof (c->final);
buffer_init (&c->b, (BufferOp)write, fd, c->bspace, sizeof (c->bspace));
buffer_initialize (&c->b, (BufferOp)write, fd, c->bspace, sizeof (c->bspace));
c->memsize = 1;
for (i = 0; i < 256; i++) {
c->count[i] = 0;
Expand Down

0 comments on commit ba40047

Please sign in to comment.