mirror of
https://github.com/postgres/postgres.git
synced 2025-07-21 16:02:15 +03:00
pgindent run on all C files. Java run to follow. initdb/regression
tests pass.
This commit is contained in:
@ -35,7 +35,7 @@ extern GLOBAL_VALUES globals;
|
||||
|
||||
|
||||
void
|
||||
SOCK_clear_error(SocketClass *self)
|
||||
SOCK_clear_error(SocketClass * self)
|
||||
{
|
||||
self->errornumber = 0;
|
||||
self->errormsg = NULL;
|
||||
@ -43,7 +43,7 @@ SOCK_clear_error(SocketClass *self)
|
||||
|
||||
|
||||
SocketClass *
|
||||
SOCK_Constructor(const ConnectionClass *conn)
|
||||
SOCK_Constructor(const ConnectionClass * conn)
|
||||
{
|
||||
SocketClass *rv;
|
||||
|
||||
@ -83,9 +83,9 @@ SOCK_Constructor(const ConnectionClass *conn)
|
||||
|
||||
|
||||
void
|
||||
SOCK_Destructor(SocketClass *self)
|
||||
SOCK_Destructor(SocketClass * self)
|
||||
{
|
||||
mylog("SOCK_Destructor\n");
|
||||
mylog("SOCK_Destructor\n");
|
||||
if (self->socket != -1)
|
||||
{
|
||||
SOCK_put_char(self, 'X');
|
||||
@ -104,7 +104,7 @@ mylog("SOCK_Destructor\n");
|
||||
|
||||
|
||||
char
|
||||
SOCK_connect_to(SocketClass *self, unsigned short port, char *hostname)
|
||||
SOCK_connect_to(SocketClass * self, unsigned short port, char *hostname)
|
||||
{
|
||||
struct hostent *host;
|
||||
struct sockaddr_in sadr;
|
||||
@ -162,7 +162,7 @@ SOCK_connect_to(SocketClass *self, unsigned short port, char *hostname)
|
||||
|
||||
|
||||
void
|
||||
SOCK_get_n_char(SocketClass *self, char *buffer, int len)
|
||||
SOCK_get_n_char(SocketClass * self, char *buffer, int len)
|
||||
{
|
||||
int lf;
|
||||
|
||||
@ -179,7 +179,7 @@ SOCK_get_n_char(SocketClass *self, char *buffer, int len)
|
||||
|
||||
|
||||
void
|
||||
SOCK_put_n_char(SocketClass *self, char *buffer, int len)
|
||||
SOCK_put_n_char(SocketClass * self, char *buffer, int len)
|
||||
{
|
||||
int lf;
|
||||
|
||||
@ -201,7 +201,7 @@ SOCK_put_n_char(SocketClass *self, char *buffer, int len)
|
||||
* returns TRUE if truncation occurs.
|
||||
*/
|
||||
BOOL
|
||||
SOCK_get_string(SocketClass *self, char *buffer, int bufsize)
|
||||
SOCK_get_string(SocketClass * self, char *buffer, int bufsize)
|
||||
{
|
||||
register int lf = 0;
|
||||
|
||||
@ -215,7 +215,7 @@ SOCK_get_string(SocketClass *self, char *buffer, int bufsize)
|
||||
|
||||
|
||||
void
|
||||
SOCK_put_string(SocketClass *self, char *string)
|
||||
SOCK_put_string(SocketClass * self, char *string)
|
||||
{
|
||||
register int lf;
|
||||
int len;
|
||||
@ -228,11 +228,11 @@ SOCK_put_string(SocketClass *self, char *string)
|
||||
|
||||
|
||||
int
|
||||
SOCK_get_int(SocketClass *self, short len)
|
||||
SOCK_get_int(SocketClass * self, short len)
|
||||
{
|
||||
switch (len)
|
||||
{
|
||||
case 2:
|
||||
case 2:
|
||||
{
|
||||
unsigned short buf;
|
||||
|
||||
@ -263,7 +263,7 @@ SOCK_get_int(SocketClass *self, short len)
|
||||
|
||||
|
||||
void
|
||||
SOCK_put_int(SocketClass *self, int value, short len)
|
||||
SOCK_put_int(SocketClass * self, int value, short len)
|
||||
{
|
||||
unsigned int rv;
|
||||
|
||||
@ -288,7 +288,7 @@ SOCK_put_int(SocketClass *self, int value, short len)
|
||||
|
||||
|
||||
void
|
||||
SOCK_flush_output(SocketClass *self)
|
||||
SOCK_flush_output(SocketClass * self)
|
||||
{
|
||||
int written;
|
||||
|
||||
@ -303,11 +303,10 @@ SOCK_flush_output(SocketClass *self)
|
||||
|
||||
|
||||
unsigned char
|
||||
SOCK_get_next_byte(SocketClass *self)
|
||||
SOCK_get_next_byte(SocketClass * self)
|
||||
{
|
||||
if (self->buffer_read_in >= self->buffer_filled_in)
|
||||
{
|
||||
|
||||
/*
|
||||
* there are no more bytes left in the buffer so reload the buffer
|
||||
*/
|
||||
@ -336,7 +335,7 @@ SOCK_get_next_byte(SocketClass *self)
|
||||
|
||||
|
||||
void
|
||||
SOCK_put_next_byte(SocketClass *self, unsigned char next_byte)
|
||||
SOCK_put_next_byte(SocketClass * self, unsigned char next_byte)
|
||||
{
|
||||
int bytes_sent;
|
||||
|
||||
|
Reference in New Issue
Block a user