summaryrefslogtreecommitdiff
path: root/pcap-sita.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <fx.lebail@yahoo.com>2015-03-08 21:39:43 +0100
committerFrancois-Xavier Le Bail <fx.lebail@yahoo.com>2015-03-08 21:39:43 +0100
commitf0b11471594801ed0bfbf7af9bba164ccc134ac5 (patch)
treebd0caea5176d636bfa3f2f3617bdd2360266a62a /pcap-sita.c
parenta08c110ec191fd877d16ac4d6ce0a0575ce5205f (diff)
downloadlibpcap-f0b11471594801ed0bfbf7af9bba164ccc134ac5.tar.gz
Delete trailing spaces/tabs
Diffstat (limited to 'pcap-sita.c')
-rw-r--r--pcap-sita.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pcap-sita.c b/pcap-sita.c
index d507e1ee..b35b106e 100644
--- a/pcap-sita.c
+++ b/pcap-sita.c
@@ -183,7 +183,7 @@ static int read_client_nbytes(int fd, int count, unsigned char *buf) {
find_unit_by_fd(fd, &chassis, &geoslot, &u);
while (count) {
if ((len = recv(fd, buf, count, 0)) <= 0) return -1; /* read in whatever data was sent to us */
- count -= len;
+ count -= len;
buf += len;
} /* till we have everything we are looking for */
return 0;
@@ -211,7 +211,7 @@ static void empty_unit(int chassis, int geoslot) {
u->imsg = (char *)realloc(u->imsg, 1); /* and re-allocate the old large buffer into a new small one */
if (u->imsg == NULL) { /* oops, realloc call failed */
fprintf(stderr, "Warning...call to realloc() failed, value of errno is %d\n", errno);
-
+
}
}
@@ -553,10 +553,10 @@ static void sort_if_table(void) {
}
if (has_swapped == 0)
return;
- }
+ }
return;
}
-
+
static int process_client_data (char *errbuf) { /* returns: -1 = error, 0 = OK */
int chassis, geoslot;
unit_t *u;