1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-08 11:23:12 +02:00

- Made some (incorrect) -Wall warnings dissapear.

This commit is contained in:
Bram Matthys
2005-03-03 00:06:42 +00:00
parent 3ae96d5eea
commit cbbc35fae3
2 changed files with 5 additions and 4 deletions
+1
View File
@@ -735,3 +735,4 @@
- Added 3.2.3 release notes (expected to be changed later on).
- Updated russian-w1251 (added 2 chars).
- Made the (G)ZLINE warning only happen on add, as it should. Reported by crazy.
- Made some (incorrect) -Wall warnings dissapear.
+4 -4
View File
@@ -202,8 +202,8 @@ long set_usermode(char *umode)
*/
unsigned char *StripColors(unsigned char *text) {
int i = 0, len = strlen(text), save_len;
char nc = 0, col = 0, rgb = 0, *save_text;
int i = 0, len = strlen(text), save_len=0;
char nc = 0, col = 0, rgb = 0, *save_text=NULL;
static unsigned char new_str[4096];
while (len > 0)
@@ -267,8 +267,8 @@ unsigned char *StripColors(unsigned char *text) {
/* strip color, bold, underline, and reverse codes from a string */
const char *StripControlCodes(unsigned char *text)
{
int i = 0, len = strlen(text), save_len;
char nc = 0, col = 0, rgb = 0, *save_text;
int i = 0, len = strlen(text), save_len=0;
char nc = 0, col = 0, rgb = 0, *save_text=NULL;
static unsigned char new_str[4096];
while (len > 0)
{