aboutsummaryrefslogtreecommitdiffstats
path: root/src/xstd.c
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-03-03 20:21:20 +0000
committerJoursoir <chat@joursoir.net>2021-03-03 20:21:20 +0000
commit1c5f7fd29fce3008218d781ab148a6974e898cac (patch)
tree54e1da521c476ca510e5db6cb830c0e58049b665 /src/xstd.c
parent8a48afccb97462b0dc261e8c99c0825295ebc019 (diff)
downloadlock-password-1c5f7fd29fce3008218d781ab148a6974e898cac.tar.gz
lock-password-1c5f7fd29fce3008218d781ab148a6974e898cac.tar.bz2
lock-password-1c5f7fd29fce3008218d781ab148a6974e898cac.zip
some chore and delete useless thing
Diffstat (limited to 'src/xstd.c')
-rw-r--r--src/xstd.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/xstd.c b/src/xstd.c
index db82c75..f791ab2 100644
--- a/src/xstd.c
+++ b/src/xstd.c
@@ -16,36 +16,8 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
***/
-#include <stdio.h>
#include <stdlib.h>
-#include <unistd.h>
#include <string.h>
-#include <sys/wait.h>
-
-void callError(int num)
-{
- fprintf(stderr, "lpass: Sorry, there was an error in the program [#%d]\n", num);
- exit(3);
-}
-
-void printError(const char *text)
-{
- fprintf(stderr, "%s", text);
- exit(4);
-}
-
-void easyFork(char *name, char *arguments[])
-{
- int pid;
- pid = fork();
- if(pid == -1) callError(100);
- if(pid == 0) { /* new process */
- execvp(name, arguments);
- perror(name);
- exit(4);
- }
- wait(&pid);
-}
char *xstrcat(const char *first, const char *second,
const char *delimiter)