White space cleanups.

MFC after:	1 week
This commit is contained in:
Pawel Jakub Dawidek 2011-03-22 10:39:34 +00:00
parent f6f59583bf
commit cd72d521e3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=219864
7 changed files with 18 additions and 18 deletions

View File

@ -46,7 +46,7 @@ __FBSDID("$FreeBSD$");
#define ACTIVEMAP_MAGIC 0xac71e4
struct activemap {
int am_magic; /* Magic value. */
off_t am_mediasize; /* Media size in bytes. */
off_t am_mediasize; /* Media size in bytes. */
uint32_t am_extentsize; /* Extent size in bytes,
must be power of 2. */
uint8_t am_extentshift;/* 2 ^ extentbits == extentsize */

View File

@ -95,7 +95,7 @@ following option:
.Bd -ragged -offset indent
.Cd "options GEOM_GATE"
.Ed
.Pp
.Pp
The connection between two
.Nm
daemons is always initiated from the one running as primary to the one

View File

@ -132,19 +132,19 @@ dtype2str(mode_t mode)
if (S_ISBLK(mode))
return ("block device");
else if (S_ISCHR(mode))
else if (S_ISCHR(mode))
return ("character device");
else if (S_ISDIR(mode))
else if (S_ISDIR(mode))
return ("directory");
else if (S_ISFIFO(mode))
return ("pipe or FIFO");
else if (S_ISLNK(mode))
else if (S_ISLNK(mode))
return ("symbolic link");
else if (S_ISREG(mode))
else if (S_ISREG(mode))
return ("regular file");
else if (S_ISSOCK(mode))
return ("socket");
else if (S_ISWHT(mode))
else if (S_ISWHT(mode))
return ("whiteout");
else
return ("unknown");
@ -929,7 +929,7 @@ main_loop(void)
time_t lastcheck, now;
fd_set rfds;
lastcheck = time(NULL);
lastcheck = time(NULL);
seltimeout.tv_sec = REPORT_INTERVAL;
seltimeout.tv_usec = 0;

View File

@ -183,7 +183,7 @@ static pthread_mutex_t metadata_lock;
while (((hio) = TAILQ_FIRST(&hio_##name##_list[(ncomp)])) == NULL && !_last) { \
cv_timedwait(&hio_##name##_list_cond[(ncomp)], \
&hio_##name##_list_lock[(ncomp)], (timeout)); \
if ((timeout) != 0) \
if ((timeout) != 0) \
_last = true; \
} \
if (hio != NULL) { \
@ -1268,7 +1268,7 @@ keepalive_send(struct hast_resource *res, unsigned int ncomp)
rw_unlock(&hio_remote_lock[ncomp]);
return;
}
PJDLOG_ASSERT(res->hr_remotein != NULL);
PJDLOG_ASSERT(res->hr_remoteout != NULL);
@ -1314,7 +1314,7 @@ remote_send_thread(void *arg)
/* Remote component is 1 for now. */
ncomp = 1;
lastcheck = time(NULL);
lastcheck = time(NULL);
for (;;) {
pjdlog_debug(2, "remote_send: Taking request.");

View File

@ -337,7 +337,7 @@ tcp4_connect_wait(void *ctx, int timeout)
tv.tv_usec = 0;
again:
FD_ZERO(&fdset);
FD_SET(tctx->tc_fd, &fdset);
FD_SET(tctx->tc_fd, &fdset);
ret = select(tctx->tc_fd + 1, NULL, &fdset, NULL, &tv);
if (ret == 0) {
error = ETIMEDOUT;

View File

@ -65,8 +65,8 @@ __FBSDID("$FreeBSD$");
#include "synch.h"
struct hio {
uint64_t hio_seq;
int hio_error;
uint64_t hio_seq;
int hio_error;
struct nv *hio_nv;
void *hio_data;
uint8_t hio_cmd;

View File

@ -134,12 +134,12 @@ const char *
role2str(int role)
{
switch (role) {
case HAST_ROLE_INIT:
switch (role) {
case HAST_ROLE_INIT:
return ("init");
case HAST_ROLE_PRIMARY:
case HAST_ROLE_PRIMARY:
return ("primary");
case HAST_ROLE_SECONDARY:
case HAST_ROLE_SECONDARY:
return ("secondary");
}
return ("unknown");