mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
The Great Embooleanating
A large number of functions had return values and/or arguments changed to use ``bool`` types instead of ``int``.
This commit is contained in:
parent
3c470ffe13
commit
fd5e15b116
145 changed files with 1288 additions and 1331 deletions
|
@ -138,7 +138,7 @@ int Base64Converter::Decode(int len, const char* data, int* pblen, char** pbuf)
|
|||
|
||||
int dlen = 0;
|
||||
|
||||
while ( 1 )
|
||||
while ( true )
|
||||
{
|
||||
if ( base64_group_next == 4 )
|
||||
{
|
||||
|
@ -255,7 +255,7 @@ BroString* decode_base64(const BroString* s, const BroString* a, Connection* con
|
|||
rlen += rlen2;
|
||||
|
||||
rbuf[rlen] = '\0';
|
||||
return new BroString(1, (u_char*) rbuf, rlen);
|
||||
return new BroString(true, (u_char*) rbuf, rlen);
|
||||
|
||||
err:
|
||||
delete [] rbuf;
|
||||
|
@ -276,5 +276,5 @@ BroString* encode_base64(const BroString* s, const BroString* a, Connection* con
|
|||
Base64Converter enc(conn, a ? a->CheckString() : "");
|
||||
enc.Encode(s->Len(), (const unsigned char*) s->Bytes(), &outlen, &outbuf);
|
||||
|
||||
return new BroString(1, (u_char*)outbuf, outlen);
|
||||
return new BroString(true, (u_char*)outbuf, outlen);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue