commit 2142d4ed250c5b452a7a9c342af513bcf1b32fec
parent 24e872edefd049f3f8485a32926fc66849d5a837
Author: Paco Esteban <paco@e1e0.net>
Date: Tue, 30 Jun 2020 13:09:29 +0200
function naming a bit more consistent
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/ssnail.c b/ssnail.c
@@ -55,13 +55,13 @@ struct article {
LIST_HEAD(listhead, article) head;
__dead static void usage(void);
-static void articleq_free(struct listhead *);
+static void free_articleq(struct listhead *);
static struct article *populate_article_entry(char *, char *);
static const struct ssnail_error *process_dir(char *, char *, int);
static const struct ssnail_error *write_html(struct article *, char *, char *);
-static const struct ssnail_error *article_sort(struct listhead *);
+static const struct ssnail_error *sort_articleq(struct listhead *);
static const struct ssnail_error *gen_html(struct article *);
__dead static void
@@ -129,7 +129,7 @@ main(int argc, char *argv[])
if ((error = process_dir(argv[0], argv[1], force)) != NULL)
goto done;
- if ((error = article_sort(&head)) != NULL)
+ if ((error = sort_articleq(&head)) != NULL)
goto done;
printf("Generate html files ... \n");
@@ -145,7 +145,7 @@ main(int argc, char *argv[])
done:
free(header_tpl);
free(footer_tpl);
- articleq_free(&head);
+ free_articleq(&head);
if (error) {
ssnail_error_fprintf(error);
@@ -156,7 +156,7 @@ done:
}
static void
-articleq_free(struct listhead *h)
+free_articleq(struct listhead *h)
{
struct article *a;
@@ -438,7 +438,7 @@ out:
}
const struct ssnail_error *
-article_sort(struct listhead *h)
+sort_articleq(struct listhead *h)
{
struct article *a1 = NULL, *a2 = NULL;
int count_elems = 0;