summaryrefslogtreecommitdiff
path: root/sd/source/ui/remotecontrol
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2013-08-16 23:46:27 +0300
committerTor Lillqvist <tlillqvist@suse.com>2013-08-17 01:52:50 +0300
commit4a01706377c6e1e7528f0536e4edf60d4cff5504 (patch)
treeb14182621ffa6fd1a813247adfc8f86f6765a5a5 /sd/source/ui/remotecontrol
parentddba5a4360e88ac4f6f848ac74ab1f350b9b7d5f (diff)
WaE: C4204: nonstandard extension used : non-constant aggregate initializer
Change-Id: I5f34209ad4ea5b97e12cb7073fcf1cf2264ebcf3
Diffstat (limited to 'sd/source/ui/remotecontrol')
-rwxr-xr-xsd/source/ui/remotecontrol/mDNSResponder/dnssd_clientstub.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sd/source/ui/remotecontrol/mDNSResponder/dnssd_clientstub.c b/sd/source/ui/remotecontrol/mDNSResponder/dnssd_clientstub.c
index fb4ae9532e59..5dcc196c65ad 100755
--- a/sd/source/ui/remotecontrol/mDNSResponder/dnssd_clientstub.c
+++ b/sd/source/ui/remotecontrol/mDNSResponder/dnssd_clientstub.c
@@ -1492,7 +1492,9 @@ DNSServiceErrorType DNSSD_API DNSServiceRegister
size_t len;
ipc_msg_hdr *hdr;
DNSServiceErrorType err;
- union { uint16_t s; u_char b[2]; } port = { PortInNetworkByteOrder };
+ union { uint16_t s; u_char b[2]; } port;
+
+ port.s = PortInNetworkByteOrder;
if (!name) name = "";
if (!regtype) return kDNSServiceErr_BadParam;
@@ -1975,12 +1977,15 @@ DNSServiceErrorType DNSSD_API DNSServiceNATPortMappingCreate
char *ptr;
size_t len;
ipc_msg_hdr *hdr;
- union { uint16_t s; u_char b[2]; } internalPort = { internalPortInNetworkByteOrder };
- union { uint16_t s; u_char b[2]; } externalPort = { externalPortInNetworkByteOrder };
+ union { uint16_t s; u_char b[2]; } internalPort;
+ union { uint16_t s; u_char b[2]; } externalPort;
DNSServiceErrorType err = ConnectToServer(sdRef, flags, port_mapping_request, handle_port_mapping_response, callBack, context);
if (err) return err; // On error ConnectToServer leaves *sdRef set to NULL
+ internalPort.s = internalPortInNetworkByteOrder;
+ externalPort.s = externalPortInNetworkByteOrder;
+
len = sizeof(flags);
len += sizeof(interfaceIndex);
len += sizeof(protocol);