From 56d2a722508422e3d82f35dcfe7adaa48c19f75c Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Thu, 1 Jun 2006 22:16:03 +0000 Subject: [PATCH] export is_url() (renamed emile_is_url()) --- libemile/emile_floppy_create_image.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libemile/emile_floppy_create_image.c b/libemile/emile_floppy_create_image.c index ce0317f..47d0961 100644 --- a/libemile/emile_floppy_create_image.c +++ b/libemile/emile_floppy_create_image.c @@ -128,7 +128,7 @@ static int aggregate(int fd, char* first_level, char* second_level, char* kernel return 0; } -static int is_url(char *path) +int emile_is_url(char *path) { return path && ((strncmp(path, "iso9660:", strlen("iso9660:")) == 0) || (strncmp(path, "container:", strlen("container:")) == 0) || @@ -170,12 +170,12 @@ int emile_floppy_create_image(char* first_level, char* second_level, if (kernel_image == NULL) fprintf(stderr, "WARNING: kernel image file not defined\n"); - if ( is_url(kernel_image) ) + if ( emile_is_url(kernel_image) ) { kernel_url = kernel_image; kernel_image = NULL; } - if ( is_url(ramdisk) ) + if ( emile_is_url(ramdisk) ) { ramdisk_url = ramdisk; ramdisk = NULL;