summaryrefslogtreecommitdiff
path: root/gobex/gobex-packet.h
diff options
context:
space:
mode:
authorMiao-chen Chou <mcchou@chromium.org>2016-12-02 18:06:12 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2016-12-07 16:03:58 +0200
commit4832ed033973018a8f87f156fb8f33c8f80a5904 (patch)
treeafceab5dbef7ea5625d5c1a69ef77fb4a36bf15e /gobex/gobex-packet.h
parentccc03d68e8f173fb8988855c22e707641342ecb5 (diff)
downloadbluez-4832ed033973018a8f87f156fb8f33c8f80a5904.tar.gz
gobex: Fix a compilation error for the compatibility with LLVM
The C Standard, subclause 7.16.1.4, paragraph 4 [ISO/IEC 9899:2011], states: The parameter parmN is the identifier of the rightmost parameter in the variable parameter list in the function definition (the one just before the ...). If the parameter parmN is declared with the register storage class, with a function or array type, or with a type that is not compatible with the type that results after application of the default argument promotions, the behavior is undefined.
Diffstat (limited to 'gobex/gobex-packet.h')
-rw-r--r--gobex/gobex-packet.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gobex/gobex-packet.h b/gobex/gobex-packet.h
index d1007ea4a..1d94ccf20 100644
--- a/gobex/gobex-packet.h
+++ b/gobex/gobex-packet.h
@@ -98,9 +98,9 @@ gboolean g_obex_packet_set_data(GObexPacket *pkt, const void *data, gsize len,
GObexDataPolicy data_policy);
const void *g_obex_packet_get_data(GObexPacket *pkt, gsize *len);
GObexPacket *g_obex_packet_new(guint8 opcode, gboolean final,
- guint8 first_hdr_id, ...);
+ guint first_hdr_id, ...);
GObexPacket *g_obex_packet_new_valist(guint8 opcode, gboolean final,
- guint8 first_hdr_id, va_list args);
+ guint first_hdr_id, va_list args);
void g_obex_packet_free(GObexPacket *pkt);
GObexPacket *g_obex_packet_decode(const void *data, gsize len,