Style nits.

This commit is contained in:
Pawel Jakub Dawidek 2010-02-18 23:04:01 +00:00
parent d0d6567d4a
commit d44dbcbb33
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204075
2 changed files with 5 additions and 5 deletions

View File

@ -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);
} }