From fcb6abb194006adcc89e76c5eccfb954bd9f1910 Mon Sep 17 00:00:00 2001
From: 0xf8 <0xf8.dev@proton.me>
Date: Sat, 25 Feb 2023 12:06:52 -0500
Subject: [PATCH] Add license
Signed-off-by: 0xf8 <0xf8.dev@proton.me>
---
README.md | 12 +++++++++---
src/main.c | 19 ++++++++++++++-----
src/main.h | 13 +++++++++++++
3 files changed, 36 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
index 02d5c9f..b6ca96b 100644
--- a/README.md
+++ b/README.md
@@ -6,13 +6,19 @@ A nice little clock app.
- Right side of the `|` is the minute
- The highlighted number is the second
-# Dependencies
+## Dependencies
- ncurses
- clang
- make
-# Compiling
+## Compiling
`make`
-# Running
+## Running
`./tempus`
+
+## License
+This program is released under the GPL3.0 license. This is available at https://www.gnu.org/licenses/gpl-3.0.html
+
+## Copyright
+Copyright 2022 g.uwu@tutanota.com
\ No newline at end of file
diff --git a/src/main.c b/src/main.c
index 2e846f0..f59939e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,3 +1,16 @@
+/*
+
+Copyright 2022 g.uwu@tutanota.com
+
+This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License along with this program. If not, see .
+
+*/
+
+
#include "./main.h"
#include
#include
@@ -87,7 +100,7 @@ int main(int argc, char **argv) {
// tests
struct timespec remaining, request = {SECS_TO_SLEEP, NSEC_TO_SLEEP};
- WINDOW *w = initscr();
+ initscr();
int rows = LINES - 1;
int cols = COLS - 1;
int midr = rows/2;
@@ -120,10 +133,6 @@ int main(int argc, char **argv) {
int minu = (min - minl) / 10;
int sec = lc->tm_sec;
-
- // print_number
- // #hour
- int sy = 0, sx = 0;
struct bignumber_t *bn_houru = bignumber(00, 0, houru);
struct bignumber_t *bn_hourl = bignumber(15, 1, hourl);
diff --git a/src/main.h b/src/main.h
index 276a11f..4bc1f6e 100644
--- a/src/main.h
+++ b/src/main.h
@@ -1,3 +1,16 @@
+/*
+
+Copyright 2022 g.uwu@tutanota.com
+
+This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License along with this program. If not, see .
+
+*/
+
+
#ifndef __MAIN_H__
#define __MAIN_H__