plan9port/src/cmd/namespace.c
Dan Cross fa325e9b42 Trivial changes: whitespace and modes.
Remote whitespace at the ends of lines.
Remove blank lines from the ends of files.
Change modes on source files so that they
are not executable.

Signed-off-by: Dan Cross <cross@gajendra.net>
2020-01-10 14:54:30 +00:00

33 lines
340 B
C

#include <u.h>
#include <libc.h>
void
usage(void)
{
fprint(2, "usage: namespace\n");
exits("usage");
}
void
main(int argc, char **argv)
{
char *ns;
ARGBEGIN{
default:
usage();
}ARGEND
if(argc)
usage();
ns = getns();
if(ns == nil){
fprint(2, "namespace: %r\n");
exits("namespace");
}
print("%s\n", ns);
exits(0);
}