summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2010-11-21 21:41:37 +0100
committerMarcel Holtmann <marcel@holtmann.org>2010-11-21 21:43:52 +0100
commit74558dc6e12fb842de39fecc45d81b4d84b251e3 (patch)
treef6a59dafc17ce24040a1b012d563a99f82606071 /tools
parent1b719b9e6045b3ff30dd7ba4518d9d358a10e479 (diff)
downloadconnman-74558dc6e12fb842de39fecc45d81b4d84b251e3.tar.gz
connman-74558dc6e12fb842de39fecc45d81b4d84b251e3.tar.bz2
connman-74558dc6e12fb842de39fecc45d81b4d84b251e3.zip
Fix compilation warning/error with g_web_set_user_agent usage
This patch fixes the following warning/error: tools/web-test.c: In function ‘main’: tools/web-test.c:134: error: format not a string literal and no format arguments
Diffstat (limited to 'tools')
-rw-r--r--tools/web-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/web-test.c b/tools/web-test.c
index 9027a2d5..8a661cf6 100644
--- a/tools/web-test.c
+++ b/tools/web-test.c
@@ -131,7 +131,7 @@ int main(int argc, char *argv[])
}
if (option_user_agent != NULL) {
- g_web_set_user_agent(web, option_user_agent);
+ g_web_set_user_agent(web, "%s", option_user_agent);
g_free(option_user_agent);
}