Skip to content

Commit

Permalink
cleanup: tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
victorbesy committed Dec 13, 2020
1 parent 88f0e8b commit 8eed304
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions utils/c/src/shunt_primitives.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ long shunt_prim_hash(const char *str) {
int c;

while (( c = *str++) )
hash = ( (hash << 5) + hash) + c; /* hash * 33 + c */
hash = ( (hash << 5) + hash) + c; /* hash * 33 + c */
return hash;
}

Expand Down Expand Up @@ -72,8 +72,8 @@ unsigned int shunt_prim_tcp_parent_init_initiator(const unsigned int portno){
parentfd = socket(AF_INET, SOCK_STREAM, 0);

if (parentfd < 0) {
shunt_prim_error("shunt_prim_tcp_parent_init_initiator opening socket<0");
return parentfd ;
shunt_prim_error("shunt_prim_tcp_parent_init_initiator opening socket<0");
return parentfd ;
}

/* Eliminates "ERROR on binding: Address already in use" error.
Expand Down Expand Up @@ -145,7 +145,7 @@ unsigned int shunt_prim_tcp_child_init_initiator(const unsigned int parentfd ) {
}
else {
printf("initiator established connection with Hostname(%s) IP(%s)\n",
hostname, hostaddrp); }
hostname, hostaddrp); }
return childfd;
}

Expand Down Expand Up @@ -200,7 +200,7 @@ int shunt_prim_get_status_socket(int fd,int event) {

if(fds_.events != POLLNVAL) {
Result_ = poll(&fds_,1,time_);
if( Result_ == POLLERR ) printf("POLL_ERR(%0d) Error on poll fd(%0d) ",Result_,fd);
if( Result_ == POLLERR ) printf("POLL_ERR(%0d) Error on poll fd(%0d) ",Result_,fd);
}
return Result_;
}
Expand Down

0 comments on commit 8eed304

Please sign in to comment.