From 94c64512b8640805c74887453d28ce0f270fae2d Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 13 Aug 2021 13:06:22 +0200 Subject: [PATCH] Whitespace cleanup --- Makefile | 3 ++- teatimer.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 2d3f30a..055db4a 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ VERSION=1.3 +ARCHIVE=teatimer-$(VERSION).tar.gz GTK_LIBS:=$(shell pkg-config --libs gtk+-x11-2.0 glib-2.0) GTK_CFLAGS:=$(shell pkg-config --cflags gtk+-x11-2.0 glib-2.0) @@ -18,5 +19,5 @@ release: git push --tags git archive --format=tar --prefix=teatimer-$(VERSION)/ HEAD | gzip >$(ARCHIVE) scp $(ARCHIVE) atrey:~ftp/pub/local/mj/linux/ - ssh jw "cd www && bin/release-prog teatimer $(VERSION)" + ssh jw "cd web && bin/release-prog teatimer $(VERSION)" mv $(ARCHIVE) ~/archives/mj/ diff --git a/teatimer.c b/teatimer.c index 1971d0d..df94fe2 100644 --- a/teatimer.c +++ b/teatimer.c @@ -29,7 +29,7 @@ static int expired; static void expand_and_exec(char *cmd) { - GString * expanded_cmd = g_string_new(""); + GString *expanded_cmd = g_string_new(""); for (int i=0; cmd[i]; i++) { if (cmd[i]=='%' && cmd[i+1]=='%') @@ -41,7 +41,7 @@ expand_and_exec(char *cmd) if (cmd[i]=='%' && cmd[i+1]=='n') { i++; - const gchar * name = gtk_entry_get_text(GTK_ENTRY(namebox)); + const gchar *name = gtk_entry_get_text(GTK_ENTRY(namebox)); g_string_append(expanded_cmd, name); } else -- 2.39.2