X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fpaths.c;h=c5b577823746f1c7cab1cc02f176baf494782ff5;hp=24e978b4e2c1c4b5cfc6092f40adcb6b7cecc8e8;hb=2b86765dfa37f9b447fe983967c1dcbc712a4989;hpb=352f5c2729dc8b40524e45ddde4f560ded717ec8 diff --git a/discover/paths.c b/discover/paths.c index 24e978b..c5b5778 100644 --- a/discover/paths.c +++ b/discover/paths.c @@ -41,15 +41,6 @@ struct load_task { void *async_data; }; -static inline bool have_busybox(void) -{ -#ifdef WITH_BUSYBOX - return true; -#else - return false; -#endif -} - const char *mount_base(void) { return DEVICE_MOUNT_BASE; @@ -71,6 +62,12 @@ char *join_paths(void *alloc_ctx, const char *a, const char *b) #ifndef PETITBOOT_TEST +#ifdef WITH_BUSYBOX +static inline bool have_busybox(void) { return true; } +#else +static inline bool have_busybox(void) { return false; } +#endif + static char *local_name(void *ctx) { char *ret, tmp[] = "/tmp/pb-XXXXXX";