More formatting updates. Reduced whitespace, looks even better.

This commit is contained in:
William Ferrell
2000-03-30 20:43:33 +00:00
parent a98c8109a8
commit ddfd41f53e
78 changed files with 0 additions and 590 deletions
-6
View File
@@ -16,21 +16,17 @@
#include "debug.h"
#include "sockets.h"
/**************************************************
LCDproc client sockets code...
Feel free to use this in your own clients... :)
**************************************************/
// Length of longest transmission allowed at once...
#define MAXMSG 8192
typedef struct sockaddr_in sockaddr_in;
static int
sock_init_sockaddr (sockaddr_in * name, const char *hostname, unsigned short int port)
{
@@ -57,7 +53,6 @@ sock_connect (char *host, unsigned short int port)
int sock;
int err = 0;
debug ("sock_connect: Creating socket\n");
sock = socket (PF_INET, SOCK_STREAM, 0);
if (sock < 0) {
@@ -77,7 +72,6 @@ sock_connect (char *host, unsigned short int port)
fcntl (sock, F_SETFL, O_NONBLOCK);
return sock;
}