Type improvements to the internal encrypt/decrypt and CTCP quoting API

Use size_t for passing buffer lengths, and const char * for encryption keys and other non-modified buffer
arguments.

Remove pointless helper function do_crypt().
This commit is contained in:
Kevin Easton
2017-06-28 16:54:11 +10:00
parent c62e099d80
commit 9b0d3e4ab5
6 changed files with 61 additions and 76 deletions

View File

@@ -3789,6 +3789,8 @@ int current_target = 0;
*/
void BX_send_text(const char *nick_list, const char *text, char *command, int hook, int log)
{
static int sent_text_recursion = 0;
int i,
old_server,
not_done = 1,
@@ -3797,9 +3799,8 @@ void BX_send_text(const char *nick_list, const char *text, char *command, int h
char *current_nick,
*next_nick,
*free_nick,
*line,
*key = NULL;
static int sent_text_recursion = 0;
*line;
const char *key = NULL;
struct target_type target[4] =
{