lunch-poll-legacy

Lunch Poll Legacy -- poll colleagues where to have lunch
Log | Files | Refs | README | LICENSE

commit 52fdc1198b88a0ed4d61af8660986dbd0289aea3
parent d075e8a398d57808a730e0a3b1673c27795d25fa
Author: Matthias Balk <mbalk@mbalk.de>
Date:   Sun, 20 Apr 2025 11:08:31 +0200

added source code link

Diffstat:
MLICENSE | 2+-
Msrc/config.h | 7++++---
Msrc/date-utils.c | 2+-
Msrc/date-utils.h | 2+-
Msrc/http.c | 2+-
Msrc/http.h | 2+-
Msrc/mittag.c | 9+++++++--
Msrc/mittag.h | 2+-
Msrc/utils.c | 2+-
Msrc/utils.h | 2+-
10 files changed, 19 insertions(+), 13 deletions(-)

diff --git a/LICENSE b/LICENSE @@ -1,4 +1,4 @@ -Copyright 2024 Matthias Balk +Copyright 2024, 2025 Matthias Balk Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: diff --git a/src/config.h b/src/config.h @@ -1,13 +1,14 @@ /** * Lunch Poll Legacy - * Copyright 2024 Matthias Balk + * Copyright 2024, 2025 Matthias Balk */ #ifndef __CONFIG_H__ #define __CONFIG_H__ -#define PROG_VERSION "1.1" +#define PROG_VERSION "1.2" #define PROG_NAME "Lunch Poll Legacy" -#define COPYRIGHT "Copyright 2024 Matthias Balk" +#define COPYRIGHT "Copyright 2024, 2025 Matthias Balk" +#define SOURCE_CODE_DOWNLOAD_URL NULL #endif /* __CONFIG_H__ */ diff --git a/src/date-utils.c b/src/date-utils.c @@ -1,6 +1,6 @@ /** * Lunch Poll Legacy - * Copyright 2024 Matthias Balk + * Copyright 2024, 2025 Matthias Balk */ #include <sys/types.h> diff --git a/src/date-utils.h b/src/date-utils.h @@ -1,6 +1,6 @@ /** * Lunch Poll Legacy - * Copyright 2024 Matthias Balk + * Copyright 2024, 2025 Matthias Balk */ #ifndef __DATE_UTILS_H__ diff --git a/src/http.c b/src/http.c @@ -1,6 +1,6 @@ /** * Lunch Poll Legacy - * Copyright 2024 Matthias Balk + * Copyright 2024, 2025 Matthias Balk */ #include <ctype.h> diff --git a/src/http.h b/src/http.h @@ -1,6 +1,6 @@ /** * Lunch Poll Legacy - * Copyright 2024 Matthias Balk + * Copyright 2024, 2025 Matthias Balk */ #ifndef __HTTP_H__ diff --git a/src/mittag.c b/src/mittag.c @@ -1,6 +1,6 @@ /** * Lunch Poll Legacy - * Copyright 2024 Matthias Balk + * Copyright 2024, 2025 Matthias Balk */ #include <errno.h> @@ -135,8 +135,13 @@ static void get_votes(void) puts("</table>Name: <input type=\"text\" name=\"name\">"); puts("<input type=\"submit\" value=\"Abstimmen\"></form>"); - printf("<p>%s %s -- %s</p></body></html>\n", + printf("<p>%s %s -- %s</p>\n", PROG_NAME, PROG_VERSION, COPYRIGHT); + if (SOURCE_CODE_DOWNLOAD_URL) { + printf("<p><a href=\"%s\" target=\"_blank\">Source Code</a></p>\n", + SOURCE_CODE_DOWNLOAD_URL); + } + puts("</body></html>"); } static void post_votes(void) diff --git a/src/mittag.h b/src/mittag.h @@ -1,6 +1,6 @@ /** * Lunch Poll Legacy - * Copyright 2024 Matthias Balk + * Copyright 2024, 2025 Matthias Balk */ #ifndef __MITTAG_H__ diff --git a/src/utils.c b/src/utils.c @@ -1,6 +1,6 @@ /** * Lunch Poll Legacy - * Copyright 2024 Matthias Balk + * Copyright 2024, 2025 Matthias Balk */ #include <ctype.h> diff --git a/src/utils.h b/src/utils.h @@ -1,6 +1,6 @@ /** * Lunch Poll Legacy - * Copyright 2024 Matthias Balk + * Copyright 2024, 2025 Matthias Balk */ #ifndef __UTILS_H__