* License.
* %End-Header%
*/
+#include "config.h"
#include <stdio.h>
#if HAVE_UNISTD_H
#include <unistd.h>
#ifdef DEBUG
int main(int argc, char** argv)
{
- const char *base;
+ char *base;
char buf[256], *cp;
while (1) {
*cp = 0;
base = base_device(buf);
printf("%s\t%s\n", buf, base ? base : "NONE");
+ free(base);
}
exit(0);
}