#include "internal.h"
#include <stdio.h>
-static const char logname_usage[] = "logname\n\n"
-
- "Print the name of the current user.\n";
-
extern int logname_main(int argc, char **argv)
{
char *user = xmalloc(9);
puts(user);
exit(TRUE);
}
- fprintf(stderr, "no login name\n");
- exit(FALSE);
+ errorMsg("no login name\n");
+ return(FALSE);
}