summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorkx <kx@radix.pro>2022-09-28 17:07:19 +0300
committerkx <kx@radix.pro>2022-09-28 17:07:19 +0300
commit5780fdaca5a2cd49c8218aec48cb6647374089ec (patch)
treeef5c36583f70cf1e24d6d3cf257beb0e832c9d98 /src/main.c
parentd05678abe9422b72583ab3a90c0c6c7db392ca83 (diff)
downloadsila-shell-5780fdaca5a2cd49c8218aec48cb6647374089ec.tar.xz
users list command implementation
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 3e991d1..d00230e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -18,6 +18,8 @@
#include <completion.h>
#include <commands.h>
+#include <shell.h>
+#include <users.h>
char *progname; /* The name of this program, as taken from argv[0]. */
int done; /* When non-zero, this global means the user is done using this program. */
@@ -256,7 +258,7 @@ char *stripwhite( char *string )
if( *s == 0 )
return( s );
- t = s + strlen (s) - 1;
+ t = s + strlen( s ) - 1;
while( t > s && whitespace( *t ) )
t--;
*++t = '\0';