mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 19:08:58 +00:00
Style nits.
This commit is contained in:
parent
d0d6567d4a
commit
d44dbcbb33
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204075
@ -159,7 +159,7 @@ g_gate_sectorsize(int fd)
|
|||||||
g_gate_xlog("fstat(): %s.", strerror(errno));
|
g_gate_xlog("fstat(): %s.", strerror(errno));
|
||||||
if (S_ISCHR(sb.st_mode)) {
|
if (S_ISCHR(sb.st_mode)) {
|
||||||
if (ioctl(fd, DIOCGSECTORSIZE, &secsize) == -1) {
|
if (ioctl(fd, DIOCGSECTORSIZE, &secsize) == -1) {
|
||||||
g_gate_xlog("Can't get sector size: %s.",
|
g_gate_xlog("Can't get sector size: %s.",
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
}
|
}
|
||||||
} else if (S_ISREG(sb.st_mode)) {
|
} else if (S_ISREG(sb.st_mode)) {
|
||||||
@ -174,7 +174,7 @@ void
|
|||||||
g_gate_open_device(void)
|
g_gate_open_device(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
g_gate_devfd = open("/dev/" G_GATE_CTL_NAME, O_RDWR, 0);
|
g_gate_devfd = open("/dev/" G_GATE_CTL_NAME, O_RDWR);
|
||||||
if (g_gate_devfd == -1)
|
if (g_gate_devfd == -1)
|
||||||
err(EXIT_FAILURE, "open(/dev/%s)", G_GATE_CTL_NAME);
|
err(EXIT_FAILURE, "open(/dev/%s)", G_GATE_CTL_NAME);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user