From: Martin Mares Date: Fri, 13 Aug 2021 11:06:22 +0000 (+0200) Subject: Whitespace cleanup X-Git-Tag: v1.4~2 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=94c64512b8640805c74887453d28ce0f270fae2d;p=teatimer.git Whitespace cleanup --- 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