summaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
authorEric Andersen2003-07-14 21:50:51 +0000
committerEric Andersen2003-07-14 21:50:51 +0000
commit43da9d19ef9ff17ada12ee6ece55b6af19559a43 (patch)
tree03f8f20ee15c721b45a1a39195695f3908f0356b /loginutils
parentcb81e6484d1f50ec2761f6294722407b14add525 (diff)
downloadbusybox-43da9d19ef9ff17ada12ee6ece55b6af19559a43.zip
busybox-43da9d19ef9ff17ada12ee6ece55b6af19559a43.tar.gz
Looks like I forgot one little tiny detail...
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/delgroup.c4
-rw-r--r--loginutils/delline.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/loginutils/delgroup.c b/loginutils/delgroup.c
index f74f64f..91edf29 100644
--- a/loginutils/delgroup.c
+++ b/loginutils/delgroup.c
@@ -31,6 +31,8 @@
#if ! defined CONFIG_DELUSER
#include "delline.c"
+#else
+extern int del_line_matching(const char *login, const char *filename);
#endif
int delgroup_main(int argc, char **argv)
@@ -57,4 +59,4 @@ int delgroup_main(int argc, char **argv)
return (EXIT_SUCCESS);
}
-/* $Id: delgroup.c,v 1.1 2003/07/14 20:20:45 andersen Exp $ */
+/* $Id: delgroup.c,v 1.2 2003/07/14 21:50:51 andersen Exp $ */
diff --git a/loginutils/delline.c b/loginutils/delline.c
index ed29ca0..8d534c8 100644
--- a/loginutils/delline.c
+++ b/loginutils/delline.c
@@ -64,7 +64,7 @@ static inline Bounds boundary(const char *buffer, const char *login)
/* grep -v ^login (except it only deletes the first match) */
/* ...in fact, I think I'm going to simplify this later */
-static int del_line_matching(const char *login, const char *filename)
+int del_line_matching(const char *login, const char *filename)
{
char *buffer;
FILE *passwd;
@@ -110,4 +110,4 @@ static int del_line_matching(const char *login, const char *filename)
}
-/* $Id: delline.c,v 1.1 2003/07/14 20:20:45 andersen Exp $ */
+/* $Id: delline.c,v 1.2 2003/07/14 21:50:51 andersen Exp $ */