#ifndef lint
static char rcsid_mailmaint_c[] = "$Header$";
-
#endif lint
/***********************************************************************/
static char *whoami;
static int status;
static void scream();
-char *ds();
+extern char *strsave();
typedef struct list_info {
char *acl;
uname = getpwuid((int) getuid())->pw_name;
}
- uname = (uname && strlen(uname)) ? ds(uname) : "";
+ uname = (uname && strlen(uname)) ? strsave(uname) : "";
printf("Connecting to database for %s...please hold on.\n", uname);
{
char c;
- show_text(DISPROW, STARTCOL, "This function may take a while...proceed[y]?");
+ show_text(DISPROW, STARTCOL, "This function may take a \
+while... proceed? [y] ");
c = getchar();
- if (c == 'n' || c == 'N') {
- erase_line(DISPROW, STARTCOL);
- return;
+ if (c == 'y' || c == 'Y') {
+ move(DISPROW + 1, STARTCOL);
+ addstr("Processing query...please hold");
+ refresh();
+ (void) list_all_groups();
}
- move(DISPROW + 1, STARTCOL);
- addstr("Processing query...please hold");
- refresh();
- (void) list_all_groups();
+ else
+ erase_line(DISPROW, STARTCOL);
+ return;
+
}
/****************************************************/
return(0);
}
-/*
- * duplicate string
- */
-char *
-ds(str)
- char *str;
-{
- register char *newstr = malloc((unsigned) strlen(str) + 1);
-
- if (newstr == (char *) NULL)
- return ((char *) NULL);
- else
- return (strcpy(newstr, str));
-}
-
/*
* Local Variables:
* mode: c