diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2015-08-02 10:45:17 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2015-08-02 10:45:17 +0200 |
commit | c55fcab3b3d3b9386e40b1578df588232edb945b (patch) | |
tree | bad86bdcce01431acd623e47d17c1c01acff50c1 /cli | |
parent | f6779d60fef803cef3e508249c29b2092cfc70c3 (diff) | |
download | ModemManager-c55fcab3b3d3b9386e40b1578df588232edb945b.tar.gz |
mmcli,call: minor alignment and message fixes
Diffstat (limited to 'cli')
-rw-r--r-- | cli/mmcli-call.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/cli/mmcli-call.c b/cli/mmcli-call.c index 3d544015f..f67155e2e 100644 --- a/cli/mmcli-call.c +++ b/cli/mmcli-call.c @@ -61,12 +61,12 @@ static GOptionEntry entries[] = { NULL, }, { "hangup", 0, 0, G_OPTION_ARG_NONE, &hangup_flag, - "Hangup the call", + "Hang up the call", NULL, }, { "send-dtmf", 0, 0, G_OPTION_ARG_STRING, &dtmf_request, - "Send specified DTMF tone", - "[0-9A-D*#]" + "Send specified DTMF tone", + "[0-9A-D*#]" }, { NULL } }; @@ -165,7 +165,7 @@ print_call_info (MMCall *call) static void start_process_reply (gboolean result, - const GError *error) + const GError *error) { if (!result) { g_printerr ("error: couldn't start the call: '%s'\n", @@ -173,13 +173,13 @@ start_process_reply (gboolean result, exit (EXIT_FAILURE); } - g_print ("successfully start the call\n"); + g_print ("successfully started the call\n"); } static void start_ready (MMCall *call, - GAsyncResult *result, - gpointer nothing) + GAsyncResult *result, + gpointer nothing) { gboolean operation_result; GError *error = NULL; @@ -192,7 +192,7 @@ start_ready (MMCall *call, static void accept_process_reply (gboolean result, - const GError *error) + const GError *error) { if (!result) { g_printerr ("error: couldn't accept the call: '%s'\n", @@ -205,8 +205,8 @@ accept_process_reply (gboolean result, static void accept_ready (MMCall *call, - GAsyncResult *result, - gpointer nothing) + GAsyncResult *result, + gpointer nothing) { gboolean operation_result; GError *error = NULL; @@ -219,21 +219,21 @@ accept_ready (MMCall *call, static void hangup_process_reply (gboolean result, - const GError *error) + const GError *error) { if (!result) { - g_printerr ("error: couldn't hangup the call: '%s'\n", + g_printerr ("error: couldn't hang up the call: '%s'\n", error ? error->message : "unknown error"); exit (EXIT_FAILURE); } - g_print ("successfully hungup'd the call\n"); + g_print ("successfully hung up the call\n"); } static void hangup_ready (MMCall *call, - GAsyncResult *result, - gpointer nothing) + GAsyncResult *result, + gpointer nothing) { gboolean operation_result; GError *error = NULL; @@ -249,7 +249,7 @@ send_dtmf_process_reply (gboolean result, const GError *error) { if (!result) { - g_printerr ("error: couldn't send_dtmf to call: '%s'\n", + g_printerr ("error: couldn't send dtmf to call: '%s'\n", error ? error->message : "unknown error"); exit (EXIT_FAILURE); } @@ -258,7 +258,7 @@ send_dtmf_process_reply (gboolean result, } static void -send_dtmf_ready (MMCall *call, +send_dtmf_ready (MMCall *call, GAsyncResult *result, gpointer nothing) { @@ -273,8 +273,8 @@ send_dtmf_ready (MMCall *call, static void get_call_ready (GObject *source, - GAsyncResult *result, - gpointer none) + GAsyncResult *result, + gpointer none) { ctx->call = mmcli_get_call_finish (result, &ctx->manager, @@ -359,7 +359,7 @@ mmcli_call_run_synchronous (GDBusConnection *connection) /* Setup operation timeout: 2 minutes */ g_dbus_proxy_set_default_timeout (G_DBUS_PROXY (ctx->call), 2 * 60 * 1000); - /* Request to get info from CALL? */ + /* Request to get info from call? */ if (info_flag) { g_debug ("Printing call info..."); print_call_info (ctx->call); |