[gssdp] Replace usage of ?:
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp] Replace usage of ?:
- Date: Sat, 24 May 2014 19:03:39 +0000 (UTC)
commit 3e354084ae7f464767454f1390ae7630ce1528e6
Author: Jens Georg <mail jensge org>
Date: Sat May 24 21:02:58 2014 +0200
Replace usage of ?:
Some compilers or settings don't really like that.
Signed-off-by: Jens Georg <mail jensge org>
libgssdp/gssdp-client.c | 2 +-
libgssdp/gssdp-resource-browser.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgssdp/gssdp-client.c b/libgssdp/gssdp-client.c
index 698af15..6bfc4aa 100644
--- a/libgssdp/gssdp-client.c
+++ b/libgssdp/gssdp-client.c
@@ -860,7 +860,7 @@ append_header_fields (GSSDPClient *client,
GSSDPHeaderField *header = (GSSDPHeaderField *) iter->data;
g_string_append_printf (str, "%s: %s\r\n",
header->name,
- header->value ?: "");
+ header->value ? header->value : "");
}
g_string_append (str, "\r\n");
diff --git a/libgssdp/gssdp-resource-browser.c b/libgssdp/gssdp-resource-browser.c
index 53ba82d..75ca9f9 100644
--- a/libgssdp/gssdp-resource-browser.c
+++ b/libgssdp/gssdp-resource-browser.c
@@ -1082,7 +1082,7 @@ send_discovery_request (GSSDPResourceBrowser *resource_browser)
message = g_strdup_printf (SSDP_DISCOVERY_REQUEST,
resource_browser->priv->target,
resource_browser->priv->mx,
- g_get_prgname () ?: "");
+ g_get_prgname () ? g_get_prgname () : "");
_gssdp_client_send_message (resource_browser->priv->client,
NULL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]