From 5a995e7e6b959ecfb1f25bf792e0c93fcc1bbb10 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Wed, 9 Jun 2021 14:50:51 -0400 Subject: [PATCH] Standardize comment style --- src/browser.c | 8 ++++---- src/downloads.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/browser.c b/src/browser.c index 669ba60..995ee5a 100644 --- a/src/browser.c +++ b/src/browser.c @@ -256,7 +256,7 @@ client_new(const gchar *uri, WebKitWebView *related_wv, gboolean show, g_signal_connect(G_OBJECT(evbox), "scroll-event", G_CALLBACK(key_tablabel), c); - /* For easy access, store a reference to our label. */ + // For easy access, store a reference to our label. g_object_set_data(G_OBJECT(evbox), "chorizo-tab-label", c->tablabel); /* This only shows the event box and the label inside, nothing else. @@ -310,8 +310,8 @@ cooperation_setup(void) { fprintf(stderr, __NAME__ ": Can't open FIFO at all.\n"); } else { if (write(cooperative_pipe_fp, "", 0) == -1) { - /* Could not do an empty write to the FIFO which means - there's no one listening. */ + /* Could not do an empty write to the FIFO which means there's no + * one listening. */ close(cooperative_pipe_fp); towatch = g_io_channel_new_file(fifopath, "r+", NULL); g_io_add_watch(towatch, G_IO_IN, (GIOFunc)remote_msg, NULL); @@ -474,7 +474,7 @@ decide_policy(WebKitWebView *web_view, WebKitPolicyDecision *decision, webkit_policy_decision_use(decision); break; default: - /* Use whatever default there is. */ + // Use whatever default there is. return FALSE; } return TRUE; diff --git a/src/downloads.c b/src/downloads.c index 6e92a2b..ec0b242 100644 --- a/src/downloads.c +++ b/src/downloads.c @@ -55,8 +55,8 @@ changed_download_progress(GObject *obj, GParamSpec *pspec, gpointer data) { uri = webkit_download_get_destination(download); filename = g_filename_from_uri(uri, NULL, NULL); if (filename == NULL) { - /* This really should not happen because WebKit uses that URI to - * write to a file... */ + /* This really should not happen because WebKit uses that URI + * to write to a file... */ fprintf(stderr, __NAME__ ": Could not construct file name from URI!\n"); t = g_strdup_printf("%s (%.0f%% of %.1f MB)", webkit_uri_response_get_uri(resp), p, size_mb); -- 2.39.2