summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-03-14 01:51:33 +0100
committerLouis Burda <quent.burda@gmail.com>2023-03-14 01:53:20 +0100
commit5b0d9b7cea555e89ed6ceee0860ddf4369b92fd5 (patch)
tree7a61d82c9d9f951c81d40706ce953ee341715eb5
parent786a3e1ae3bc6aa2490dd2e08905641468b6804e (diff)
downloadvkill-5b0d9b7cea555e89ed6ceee0860ddf4369b92fd5.tar.gz
vkill-5b0d9b7cea555e89ed6ceee0860ddf4369b92fd5.zip
Add MIT license
-rw-r--r--LICENSE21
-rw-r--r--Makefile6
-rw-r--r--vkill.c5
3 files changed, 24 insertions, 8 deletions
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..361f116
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023 Louis Burda
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/Makefile b/Makefile
index 0235558..a765ff0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,14 @@
PREFIX ?= /usr/local
BINDIR ?= /bin
+CFLAGS = -Wunused-variable -Wunused-function
+
all: vkill
clean:
rm -f vkill
-vkill: vkill.c
-
-install: vkill
+install:
install -m755 vkill -T "$(DESTDIR)$(PREFIX)$(BINDIR)/vkill"
uninstall:
diff --git a/vkill.c b/vkill.c
index 641a069..812f014 100644
--- a/vkill.c
+++ b/vkill.c
@@ -11,11 +11,6 @@
#include <stdlib.h>
#include <stdio.h>
-static const char *strcasestr(const char *haystack, const char *needle);
-
-static char *readcmd(pid_t pid);
-static void killprompt(pid_t pid);
-
static const char usage[] = "vkill [-h] [-SIG] CMD";
static int signum = SIGTERM;