diff options
author | Max Kellermann <max@duempel.org> | 2013-08-04 23:48:01 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-08-04 23:48:01 +0200 |
commit | 85b77b81caa40f8bcd03921380246cb5863d5d21 (patch) | |
tree | cf4bc60a6760c52bcbd642a253b45f3bc5ad8775 /src/input/CurlInputPlugin.cxx | |
parent | 5bf2ec5a74bb1247a8cc84e90577eecbee116c62 (diff) | |
download | mpd-85b77b81caa40f8bcd03921380246cb5863d5d21.tar.gz mpd-85b77b81caa40f8bcd03921380246cb5863d5d21.tar.xz mpd-85b77b81caa40f8bcd03921380246cb5863d5d21.zip |
*: use gcc.h macros instead of GLib
Diffstat (limited to 'src/input/CurlInputPlugin.cxx')
-rw-r--r-- | src/input/CurlInputPlugin.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/input/CurlInputPlugin.cxx b/src/input/CurlInputPlugin.cxx index 5e9cbf1d8..cabde5bba 100644 --- a/src/input/CurlInputPlugin.cxx +++ b/src/input/CurlInputPlugin.cxx @@ -228,6 +228,7 @@ static struct { CurlSockets *sockets; } curl; +gcc_const static inline GQuark curl_quark(void) { @@ -615,7 +616,7 @@ CurlSockets::DispatchSockets() static bool input_curl_init(const config_param ¶m, - G_GNUC_UNUSED GError **error_r) + gcc_unused GError **error_r) { CURLcode code = curl_global_init(CURL_GLOBAL_ALL); if (code != CURLE_OK) { @@ -654,7 +655,7 @@ input_curl_init(const config_param ¶m, } static gpointer -curl_destroy_sources(G_GNUC_UNUSED gpointer data) +curl_destroy_sources(gcc_unused gpointer data) { delete curl.sockets; @@ -681,7 +682,7 @@ input_curl_finish(void) * * The caller must lock the mutex. */ -G_GNUC_PURE +gcc_pure static size_t curl_total_buffer_size(const struct input_curl *c) { @@ -869,7 +870,7 @@ input_curl_close(struct input_stream *is) } static bool -input_curl_eof(G_GNUC_UNUSED struct input_stream *is) +input_curl_eof(gcc_unused struct input_stream *is) { struct input_curl *c = (struct input_curl *)is; |