aboutsummaryrefslogtreecommitdiff
path: root/attrib
diff options
context:
space:
mode:
authorSheldon Demario <sheldon.demario@openbossa.org>2011-03-02 19:36:56 -0300
committerJohan Hedberg <johan.hedberg@nokia.com>2011-03-04 15:49:53 -0300
commited6e2d24ea216e6a1a0b9e68a3e226729c33d30f (patch)
tree46c3cba4d392bc367f354ae3128f69f67369f176 /attrib
parentadc7ca1ece5e579998e5f3b0cca9af7bf8ac8ca1 (diff)
downloadbluez-ed6e2d24ea216e6a1a0b9e68a3e226729c33d30f.tar.gz
Replace all strdup() with g_strdup() in gatttool
Diffstat (limited to 'attrib')
-rw-r--r--attrib/gatttool.c2
-rw-r--r--attrib/interactive.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/attrib/gatttool.c b/attrib/gatttool.c
index e51db7b2..975fb473 100644
--- a/attrib/gatttool.c
+++ b/attrib/gatttool.c
@@ -538,7 +538,7 @@ int main(int argc, char *argv[])
GIOChannel *chan;
GSourceFunc callback;
- opt_sec_level = strdup("low");
+ opt_sec_level = g_strdup("low");
context = g_option_context_new(NULL);
g_option_context_add_main_entries(context, options, NULL);
diff --git a/attrib/interactive.c b/attrib/interactive.c
index 52edeac2..8429a472 100644
--- a/attrib/interactive.c
+++ b/attrib/interactive.c
@@ -303,7 +303,7 @@ static void cmd_connect(int argcp, char **argvp)
if (argcp > 1) {
g_free(opt_dst);
- opt_dst = strdup(argvp[1]);
+ opt_dst = g_strdup(argvp[1]);
}
if (opt_dst == NULL) {
@@ -585,7 +585,7 @@ static void cmd_sec_level(int argcp, char **argvp)
}
g_free(opt_sec_level);
- opt_sec_level = strdup(argvp[1]);
+ opt_sec_level = g_strdup(argvp[1]);
if (conn_state != STATE_CONNECTED)
return;
@@ -696,9 +696,9 @@ int interactive(gchar *dst, int psm)
GIOChannel *pchan;
gint events;
- opt_sec_level = strdup("low");
+ opt_sec_level = g_strdup("low");
- opt_dst = strdup(dst);
+ opt_dst = g_strdup(dst);
opt_psm = psm;
prompt = g_string_new(NULL);