libxl: fix build failure for non-Linux platforms
Move variable definitions into Linux-specific sections where they are actually used. Fixes warning about unused variables.
Signed-off-by Christoph Egger <[email protected]>
Signature · 6 lines
---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85689 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632
tools/libxl/libxl_exec.c +2 -2
@@ -41,8 +41,6 @@ static void check_open_fds(const char *wconst char *env_debug;int debug;int i, flags, badness =0 ; -char path[PATH_MAX ]; -char link[PATH_MAX +1 ]; env_debug =getenv ("_LIBXL_DEBUG_EXEC_FDS" );if (!env_debug)return ;
@@ -53,6 +51,8 @@ static void check_open_fds(const char *wfor (i =4 ; i <256 ; i++) {#ifdef __linux__size_t len; +char path[PATH_MAX ]; +char link[PATH_MAX +1 ];#endif flags =fcntl (i,F_GETFD );if ( flags ==-1 ) {
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Ian Jackson
Acked-byChristoph Egger writes ("[Xen-devel] libxl: fix build failure for non-Linux platforms"):
Quoted 4 lines
Move variable definitions into Linux-specific sections where they are actually used. Fixes warning about unused variables.
Signed-off-by Christoph Egger <[email protected]>
Thanks.
Acked-by Ian Jackson <[email protected]>
Committed-by Ian Jackson <[email protected]>