summaryrefslogtreecommitdiff
path: root/usr.bin/tcfs/tcfsrmgroup.c
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2000-06-20 08:59:54 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2000-06-20 08:59:54 +0000
commit4f2787a350667e8f4b89a64bcc28eb25b6a0bf62 (patch)
tree285b7478875a2cc02d80ce2c5fc4d7ea00e82766 /usr.bin/tcfs/tcfsrmgroup.c
parent7642cb8aa780d2f881f070a40d305068b7dc982a (diff)
fix warnings during compilation. replace a few more calloc's with
malloc's; no need to clean the buffer for fgets.
Diffstat (limited to 'usr.bin/tcfs/tcfsrmgroup.c')
-rw-r--r--usr.bin/tcfs/tcfsrmgroup.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/tcfs/tcfsrmgroup.c b/usr.bin/tcfs/tcfsrmgroup.c
index 03ad2b0c213..d64bd06223d 100644
--- a/usr.bin/tcfs/tcfsrmgroup.c
+++ b/usr.bin/tcfs/tcfsrmgroup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcfsrmgroup.c,v 1.8 2000/06/20 06:45:16 fgsch Exp $ */
+/* $OpenBSD: tcfsrmgroup.c,v 1.9 2000/06/20 08:59:53 fgsch Exp $ */
/*
* Transparent Cryptographic File System (TCFS) for NetBSD
@@ -31,7 +31,7 @@ int
rmgroup_main(int argn, char *argv[])
{
int val;
- gid_t gid;
+ gid_t gid = 0;
int have_gid = FALSE, be_verbose = FALSE;
/*
@@ -71,7 +71,7 @@ rmgroup_main(int argn, char *argv[])
char *buff = NULL;
int len;
- buff = (char *)calloc(2048, sizeof(char));
+ buff = (char *)malloc(2048);
if (!buff)
tcfs_error(ER_MEM, NULL);
@@ -98,4 +98,6 @@ rmgroup_main(int argn, char *argv[])
if (!tcfs_rmgroup(gid))
tcfs_error(ER_CUSTOM, "Wrong ID or an error as occurred.\n");
+
+ exit(0);
}