2 * misc.c: Miscellaneous helpful functions.
10 int rand_upto(int limit
)
12 unsigned long divisor
= RAND_MAX
/ (unsigned)limit
;
13 unsigned long max
= divisor
* (unsigned)limit
;
27 void free_cfg(config_item
*cfg
)
31 for (i
= cfg
; i
->type
!= C_END
; i
++)
32 if (i
->type
== C_STRING
)