Skip to content

Commit

Permalink
metadata: fix compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
abrasive committed Jul 1, 2014
1 parent 590ebe0 commit c3f3fbe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 6 additions & 4 deletions metadata.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
#include <fcntl.h>
#include <openssl/md5.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>

#include "common.h"
#include "metadata.h"
Expand Down Expand Up @@ -76,11 +78,11 @@ static void metadata_close(void) {
}

static void print_one(const char *name, const char *value) {
write(fd, name, strlen(name));
write(fd, "=", 1);
write_unchecked(fd, name, strlen(name));
write_unchecked(fd, "=", 1);
if (value)
write(fd, value, strlen(value));
write(fd, "\n", 1);
write_unchecked(fd, value, strlen(value));
write_unchecked(fd, "\n", 1);
}

#define write_one(name) \
Expand Down
1 change: 1 addition & 0 deletions shairport.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include "rtsp.h"
#include "mdns.h"
#include "getopt_long.h"
#include "metadata.h"

static const char *version =
#include "version.h"
Expand Down

0 comments on commit c3f3fbe

Please sign in to comment.