Fix style(9) space vs tab.
Reviewed by: jhb MFC after: 3 weeks. Sponsored by: iXsystems Inc. Differential Revision: https://reviews.freebsd.org/D15774
This commit is contained in:
parent
2ea5b0f54a
commit
23fe789d78
@ -85,19 +85,19 @@ struct vmctx {
|
|||||||
static int
|
static int
|
||||||
vm_device_open(const char *name)
|
vm_device_open(const char *name)
|
||||||
{
|
{
|
||||||
int fd, len;
|
int fd, len;
|
||||||
char *vmfile;
|
char *vmfile;
|
||||||
|
|
||||||
len = strlen("/dev/vmm/") + strlen(name) + 1;
|
len = strlen("/dev/vmm/") + strlen(name) + 1;
|
||||||
vmfile = malloc(len);
|
vmfile = malloc(len);
|
||||||
assert(vmfile != NULL);
|
assert(vmfile != NULL);
|
||||||
snprintf(vmfile, len, "/dev/vmm/%s", name);
|
snprintf(vmfile, len, "/dev/vmm/%s", name);
|
||||||
|
|
||||||
/* Open the device file */
|
/* Open the device file */
|
||||||
fd = open(vmfile, O_RDWR, 0);
|
fd = open(vmfile, O_RDWR, 0);
|
||||||
|
|
||||||
free(vmfile);
|
free(vmfile);
|
||||||
return (fd);
|
return (fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -876,7 +876,7 @@ vm_set_capability(struct vmctx *ctx, int vcpu, enum vm_cap_type cap, int val)
|
|||||||
vmcap.cpuid = vcpu;
|
vmcap.cpuid = vcpu;
|
||||||
vmcap.captype = cap;
|
vmcap.captype = cap;
|
||||||
vmcap.capval = val;
|
vmcap.capval = val;
|
||||||
|
|
||||||
return (ioctl(ctx->fd, VM_SET_CAPABILITY, &vmcap));
|
return (ioctl(ctx->fd, VM_SET_CAPABILITY, &vmcap));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1580,4 +1580,3 @@ vm_get_ioctls(size_t *len)
|
|||||||
*len = nitems(vm_ioctl_cmds);
|
*len = nitems(vm_ioctl_cmds);
|
||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user