aboutsummaryrefslogtreecommitdiff
path: root/release/sysinstall/misc.c
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1995-04-29 19:33:06 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1995-04-29 19:33:06 +0000
commite40a316fcf70b54426ebd18c62bb955ccc10c827 (patch)
treeab80745bc8d6737d2054b314ccdba01ec7273564 /release/sysinstall/misc.c
parent1b52479293594185144ca9632c7677fa99115e7e (diff)
Notes
Diffstat (limited to 'release/sysinstall/misc.c')
-rw-r--r--release/sysinstall/misc.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/release/sysinstall/misc.c b/release/sysinstall/misc.c
index e9a5642f12e6..4f789e2bea3a 100644
--- a/release/sysinstall/misc.c
+++ b/release/sysinstall/misc.c
@@ -1,7 +1,7 @@
/*
* Miscellaneous support routines..
*
- * $Id$
+ * $Id: misc.c,v 1.1.1.1 1995/04/27 12:50:35 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -99,9 +99,10 @@ safe_free(void *ptr)
}
/*
- * These next two are kind of specialized just for building string lists
+ * These next routines are kind of specialized just for building string lists
* for dialog_menu().
*/
+
/* Add a string to an item list */
char **
item_add(char **list, char *item, int *curr, int *max)
@@ -115,6 +116,15 @@ item_add(char **list, char *item, int *curr, int *max)
return list;
}
+/* Add a pair of items to an item list (more the usual case) */
+char **
+item_add_pair(char **list, char *item1, char *item2, int *curr, int *max)
+{
+ list = item_add(list, item1, curr, max);
+ list = item_add(list, item2, curr, max);
+ return list;
+}
+
/* Toss the items out */
void
items_free(char **list, int *curr, int *max)