From 44f3b691d10738ea85b92986cbc6f8d8d61f0351 Mon Sep 17 00:00:00 2001 From: Stephen Cochrane Date: Fri, 16 Apr 2021 20:56:50 +0200 Subject: [PATCH] Tidy up --- Makefile | 4 ++-- raw/index.txt | 14 ++++++-------- raw/template.html | 1 + src/GenBlog.c | 5 ++--- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index 39fb54f..403ce01 100644 --- a/Makefile +++ b/Makefile @@ -4,9 +4,9 @@ CC=gcc FLAGS=-Wall -pedantic EXE=bin/GenBlog -all: comp blog build +all: build -demo: comp blog buildd +demo: buildd comp: install $(CC) $(FLAGS) src/GenBlog.c -o $(EXE) diff --git a/raw/index.txt b/raw/index.txt index f62c406..9219031 100644 --- a/raw/index.txt +++ b/raw/index.txt @@ -76,19 +76,17 @@ SBLOCK. What I consider bloat EBLOCK. SBLOCK. Contact Details -* Fediverse: @x@social.skiqqy.xyz +* Email: a/mailto:skiqqy@redxen.eu/skiqqy@redxen.eu/ (preferred) \\\\ -* Twitter: @posix_patrol +* Fediverse: a/https://social.skiqqy.xyz/x/x@social.skiqqy.xyz/ \\\\ -* Instagram: @_skiqqy +* Twitter: a/https://twitter.com/posix_patrol/@posix_patrol/ \\\\ -* Email: ohmyskippy@disroot.org +* Instagram: a/https://www.instagram.com/_skiqqy/@_skiqqy/ \\\\ * xmpp: ohmyskippy@disroot.org \\\\ * Discord: Skiqqy#1159 -EBLOCK. - -SBLOCK. Other -* IRC: irc.skiqqy.xyz:6667 +\\\\ +* IRC: skiqqy EBLOCK. diff --git a/raw/template.html b/raw/template.html index c1e7c60..ed4c839 100644 --- a/raw/template.html +++ b/raw/template.html @@ -11,6 +11,7 @@ } a{ + text-decoration: none; color:#DC143C } diff --git a/src/GenBlog.c b/src/GenBlog.c index 7916f9c..d8bd842 100644 --- a/src/GenBlog.c +++ b/src/GenBlog.c @@ -28,7 +28,7 @@ int main() { while ((ent = readdir(dir)) != NULL) { if (strcmp(ent->d_name, ".") && strcmp(ent->d_name, "..")) { sprintf(htmlName, "./blogs/"); - sprintf(link, ""); + link[0] = 0; c = ent->d_name; i = 0; @@ -62,7 +62,6 @@ int main() { } void genBP(char *file) { - char buff[256]; curr = fopen(file, "r"); // just for debug @@ -102,7 +101,7 @@ void echoFile(FILE *fp) { strcat(line, cat); } else { printf("%s\n", line); - sprintf(line, ""); + line[0] = 0; } ch = getc(fp); }