Skip to content

Commit

Permalink
send: Strip trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
pmenzel committed Mar 18, 2022
1 parent d7f0aa3 commit 907197f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions send/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ int main(int argc,char *argv[]) {

int seconds=10;

if (argc<2 || argc>3) usage();
if (argc<2 || argc>3) usage();
host=argv[1];
port = argc==3 ? atoi(argv[2]) : IPPORT_DISCARD;

Expand All @@ -79,7 +79,7 @@ int main(int argc,char *argv[]) {
sin.sin_port = htons(port);
memcpy(&sin.sin_addr,he->h_addr,he->h_length);

status=connect(s,(struct sockaddr *)&sin,sizeof(sin));
status=connect(s,(struct sockaddr *)&sin,sizeof(sin));
if (status<0) {perror("connect");exit(EXIT_FAILURE);}

signal(SIGALRM,sigAlarm);
Expand Down

0 comments on commit 907197f

Please sign in to comment.