int use_menu = 1;
char buf[BUFSIZ];
- extern void sms_com_err_hook();
init_sms_err_tbl();
init_krb_err_tbl();
- set_com_err_hook(sms_com_err_hook);
-
- /*
- * This shouldn't be here.... the experienced user will catch the error
- * -- the inexperienced one will just be confused.
- *
- * if (getenv("TERM") == (char *) NULL) { Put_message("Please set your TERM
- * environment variable\n"); goto punt; } if (getenv("TERMCAP") == (char
- * *) NULL) { Put_message("Please set your TERMCAP environment
- * variable\n"); goto punt; }
- *
- */
+
if ((whoami = rindex(argv[0], '/')) == NULL)
whoami = argv[0];
else
cls();
endwin();
}
- sms_disconnect();
exit(0);
punt:
com_err(whoami, status, buf);
-/* sms_disconnect(); */
exit(1);
}
currow++;
}
show_text(currow, STARTCOL, "Press any Key to continue...");
- c = getchar();
+ (void) getchar();
}
clrwin(DISPROW);
}
}
currow = DISPROW + 4;
show_text(DISPROW + 4, STARTCOL, "Press any Key to continue...");
- c = getchar();
+ (void) getchar();
}
clrwin(DISPROW);
}
}
currow = DISPROW + 4;
show_text(DISPROW + 4, STARTCOL, "Press any Key to continue...");
- c = getchar();
+ (void) getchar();
}
clrwin(DISPROW);
}
com_err(whoami, status, " in get_lists_of_member");
}
show_text(currow, STARTCOL, "Press any Key to continue...");
- c = getchar();
+ (void) getchar();
clrwin(DISPROW);
return;
}
show_text(currow, STARTCOL, buffer);
currow++;
show_text(currow, STARTCOL, "Press any key to continue...");
- c = getchar();
+ (void) getchar();
clrwin(DISPROW);
}
case '\r':
Put_message("\r");
*p = '\0';
- if (strlen(buf) < 1)/* only /n or /r in buff */
+ if (strlen(buf) < 1)/* only \n or \r in buff */
return (-1);
else
return (1);