diff options
| author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2009-01-13 19:08:22 +0200 | 
|---|---|---|
| committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2009-01-13 22:56:02 +0200 | 
| commit | 09641cc707b0cf45368fa9e61ca8607483b4989f (patch) | |
| tree | 7805e702a0773a8d6a4bc523a49bd4491e8d6cca /src | |
| parent | 49ae38347cbf9646e69ee4dd8ebe353e04aa650f (diff) | |
build: fix few warnings
Diffstat (limited to 'src')
| -rw-r--r-- | src/pulse/def.h | 2 | ||||
| -rw-r--r-- | src/pulse/proplist.c | 2 | ||||
| -rw-r--r-- | src/pulsecore/core-util.h | 1 | 
3 files changed, 3 insertions, 2 deletions
| diff --git a/src/pulse/def.h b/src/pulse/def.h index ace56574..7a715b66 100644 --- a/src/pulse/def.h +++ b/src/pulse/def.h @@ -428,7 +428,7 @@ typedef enum pa_subscription_event_type {      PA_SUBSCRIPTION_EVENT_REMOVE = 0x0020U,      /**< An object was removed */ -    PA_SUBSCRIPTION_EVENT_TYPE_MASK = 0x0030U, +    PA_SUBSCRIPTION_EVENT_TYPE_MASK = 0x0030U      /**< A mask to extract the event operation from an event value */  } pa_subscription_event_type_t; diff --git a/src/pulse/proplist.c b/src/pulse/proplist.c index 1694284d..909df9a7 100644 --- a/src/pulse/proplist.c +++ b/src/pulse/proplist.c @@ -359,7 +359,7 @@ pa_proplist *pa_proplist_from_string(const char *str) {              }              blob = pa_xmalloc((size_t)(e-v)/2); -            if (pa_parsehex(v, blob, (e-v)/2) != ((e-v)/2)) { +            if (pa_parsehex(v, blob, (e-v)/2) != (size_t)((e-v)/2)) {                  pa_log("Invalid \"hex:\" value data");                  pa_xfree(blob);                  break; diff --git a/src/pulsecore/core-util.h b/src/pulsecore/core-util.h index d9fad11e..167d0735 100644 --- a/src/pulsecore/core-util.h +++ b/src/pulsecore/core-util.h @@ -27,6 +27,7 @@  #include <inttypes.h>  #include <stdarg.h>  #include <stdio.h> +#include <string.h>  #ifdef HAVE_SYS_RESOURCE_H  #include <sys/resource.h> | 
