Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dbus: fix write() compilation error
  • Loading branch information
perexg committed Aug 11, 2014
1 parent e62642d commit cfe09bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -27,7 +27,7 @@ PROG := $(BUILDDIR)/tvheadend
# Common compiler flags
#

CFLAGS += -g -O2
CFLAGS += -g -O2 -Wunused-result
CFLAGS += -Wall -Werror -Wwrite-strings -Wno-deprecated-declarations
CFLAGS += -Wmissing-prototypes
CFLAGS += -fms-extensions -funsigned-char -fno-strict-aliasing
Expand Down
3 changes: 2 additions & 1 deletion src/dbus.c
Expand Up @@ -62,6 +62,7 @@ void
dbus_emit_signal(const char *obj_name, const char *sig_name, htsmsg_t *msg)
{
dbus_sig_t *ds = calloc(1, sizeof(dbus_sig_t));
int unused __attribute__((unused));
size_t l;

if (!dbus_running) {
Expand All @@ -77,7 +78,7 @@ dbus_emit_signal(const char *obj_name, const char *sig_name, htsmsg_t *msg)
pthread_mutex_lock(&dbus_lock);
TAILQ_INSERT_TAIL(&dbus_signals, ds, link);
pthread_mutex_unlock(&dbus_lock);
(void)write(dbus_pipe.wr, "s", 1); /* do not wait here - no tvh_write() */
unused = write(dbus_pipe.wr, "s", 1); /* do not wait here - no tvh_write() */
}

void
Expand Down

0 comments on commit cfe09bc

Please sign in to comment.