diff options
| author | Louis Burda <quent.burda@gmail.com> | 2023-03-14 01:51:33 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2023-03-14 01:53:20 +0100 |
| commit | 5b0d9b7cea555e89ed6ceee0860ddf4369b92fd5 (patch) | |
| tree | 7a61d82c9d9f951c81d40706ce953ee341715eb5 | |
| parent | 786a3e1ae3bc6aa2490dd2e08905641468b6804e (diff) | |
| download | vkill-5b0d9b7cea555e89ed6ceee0860ddf4369b92fd5.tar.gz vkill-5b0d9b7cea555e89ed6ceee0860ddf4369b92fd5.zip | |
Add MIT license
| -rw-r--r-- | LICENSE | 21 | ||||
| -rw-r--r-- | Makefile | 6 | ||||
| -rw-r--r-- | vkill.c | 5 |
3 files changed, 24 insertions, 8 deletions
@@ -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. @@ -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: @@ -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; |
