On 2016-08-04 21:28, Ralf Ramsauer wrote:
> The device file "/dev/jailhouse" appears in several locations. Reducing
> the occurence of this string makes code more flexible.
> 
> Signed-off-by: Ralf Ramsauer <[email protected]>
> ---
>  tools/jailhouse.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/tools/jailhouse.c b/tools/jailhouse.c
> index ba2af66..be5b833 100644
> --- a/tools/jailhouse.c
> +++ b/tools/jailhouse.c
> @@ -26,6 +26,7 @@
>  #include <jailhouse.h>
>  
>  #define JAILHOUSE_EXEC_DIR   LIBEXECDIR "/jailhouse"
> +#define JAILHOUSE_DEVICE     "/dev/jailhouse"
>  
>  enum shutdown_load_mode {LOAD, SHUTDOWN};
>  
> @@ -101,9 +102,9 @@ static int open_dev()
>  {
>       int fd;
>  
> -     fd = open("/dev/jailhouse", O_RDWR);
> +     fd = open(JAILHOUSE_DEVICE, O_RDWR);
>       if (fd < 0) {
> -             perror("opening /dev/jailhouse");
> +             perror("opening " JAILHOUSE_DEVICE);
>               exit(1);
>       }
>       return fd;
> 

Makes sense, queued.

Jan

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to