Commit Diff
Diff:
164954a78856893c9be03d95dac73e781e4f78f5
be97fa8ab1c47a17f6d4c17c69de89d084dc1402
Commit:
be97fa8ab1c47a17f6d4c17c69de89d084dc1402
Tree:
ab296934e6992ab35751d663b00a3e48c71fd85f
Author:
Brett Smith <brett@w3.org>
Committer:
Brett Smith <brett@w3.org>
Date:
Thu Aug 23 18:18:15 2012 UTC
Message:
Indentation and style fixes.
blob - 6ab3c2a9054c0524e88e57e68723eed9efe22004
blob + 46a3ecc2caefe0c1dc5fe41754357aadc08db128
--- src/ngircd/conn.c
+++ src/ngircd/conn.c
@@ -921,22 +921,22 @@ va_dcl
GLOBAL char*
Conn_Password( CONN_ID Idx )
{
- assert( Idx > NONE );
- if (My_Connections[Idx].pwd == NULL)
- return (char*)"\0";
- else
- return My_Connections[Idx].pwd;
+ assert( Idx > NONE );
+ if (My_Connections[Idx].pwd == NULL)
+ return (char*)"\0";
+ else
+ return My_Connections[Idx].pwd;
} /* Conn_Password */
GLOBAL void
Conn_SetPassword( CONN_ID Idx, const char *Pwd )
{
- assert( Idx > NONE );
- My_Connections[Idx].pwd = strdup(Pwd);
- if (My_Connections[Idx].pwd == NULL) {
- Log(LOG_EMERG, "Can't allocate memory! [Conn_SetPassword]");
- exit(1);
- }
+ assert( Idx > NONE );
+ My_Connections[Idx].pwd = strdup(Pwd);
+ if (My_Connections[Idx].pwd == NULL) {
+ Log(LOG_EMERG, "Can't allocate memory! [Conn_SetPassword]");
+ exit(1);
+ }
} /* Conn_SetPassword */
/**
@@ -1167,7 +1167,7 @@ Conn_Close( CONN_ID Idx, const char *LogMsg, const cha
array_free(&My_Connections[Idx].rbuf);
array_free(&My_Connections[Idx].wbuf);
if (My_Connections[Idx].pwd != NULL)
- free(My_Connections[Idx].pwd);
+ free(My_Connections[Idx].pwd);
/* Clean up connection structure (=free it) */
Init_Conn_Struct( Idx );
blob - 5d5ee634a42772f1979d79d56bc6ed8d4f4430f4
blob + 8526a573ec361b0851222314343e079b447114f6
--- src/ngircd/irc-server.c
+++ src/ngircd/irc-server.c
@@ -80,7 +80,8 @@ IRC_SERVER( CLIENT *Client, REQUEST *Req )
Conn_Close( Client_Conn( Client ), NULL, "Server not configured here", true);
return DISCONNECTED;
}
- if( strcmp( Conn_Password( Client_Conn( Client ) ), Conf_Server[i].pwd_in ) != 0 )
+ if( strcmp( Conn_Password( Client_Conn( Client ) ),
+ Conf_Server[i].pwd_in ) != 0 )
{
/* wrong password */
Log( LOG_ERR, "Connection %d: Got bad password from server \"%s\"!", Client_Conn( Client ), Req->argv[0] );
IRCNow