MyAfterProc(struct cmd_syndesc *as)
{
if (!strcmp(as->name, "help"))
- return;
+ return 0;
/* Determine if we need to destory the ubik connection.
* Closing it avoids resends of packets.
MyBeforeProc(struct cmd_syndesc *as, char *arock)
{
extern struct passwd *getpwuid();
- struct passwd *pw;
struct ktc_encryptionKey key;
struct ktc_principal auth_server, auth_token, client;
char realm[MAXKTCREALMLEN];
}
#else
/* No explicit name provided: use Unix uid. */
- pw = getpwuid(getuid());
+ struct passwd pw = getpwuid(getuid());
if (pw == 0) {
printf("Can't figure out your name from your user id.\n");
return KABADCMD;