Skip to content

Commit

Permalink
Merge pull request akheron#435 from edgale/master
Browse files Browse the repository at this point in the history
unreferenced variable fix
  • Loading branch information
akheron authored Sep 4, 2018
2 parents 020cc26 + d83d3d9 commit e65a490
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ static int dump_to_file(const char *buffer, size_t size, void *data)

static int dump_to_fd(const char *buffer, size_t size, void *data)
{
int *dest = (int *)data;
#ifdef HAVE_UNISTD_H
int *dest = (int *)data;
if(write(*dest, buffer, size) == (ssize_t)size)
return 0;
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/load.c
Original file line number Diff line number Diff line change
Expand Up @@ -1034,8 +1034,8 @@ json_t *json_loadf(FILE *input, size_t flags, json_error_t *error)

static int fd_get_func(int *fd)
{
uint8_t c;
#ifdef HAVE_UNISTD_H
uint8_t c;
if (read(*fd, &c, 1) == 1)
return c;
#endif
Expand Down

0 comments on commit e65a490

Please sign in to comment.