1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -04:00

Rename some variables.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4718 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2008-03-03 01:57:50 +00:00 committed by exg
parent 2e63374f31
commit cb7d969963
2 changed files with 10 additions and 10 deletions

View File

@ -576,23 +576,23 @@ uoff_t str_to_uofft(const char *str)
} }
/* convert all low-ascii (<32) to ^<A..> combinations */ /* convert all low-ascii (<32) to ^<A..> combinations */
char *show_lowascii(const char *channel) char *show_lowascii(const char *str)
{ {
char *str, *p; char *ret, *p;
str = p = g_malloc(strlen(channel)*2+1); ret = p = g_malloc(strlen(str)*2+1);
while (*channel != '\0') { while (*str != '\0') {
if ((unsigned char) *channel >= 32) if ((unsigned char) *str >= 32)
*p++ = *channel; *p++ = *str;
else { else {
*p++ = '^'; *p++ = '^';
*p++ = *channel + 'A'-1; *p++ = *str + 'A'-1;
} }
channel++; str++;
} }
*p = '\0'; *p = '\0';
return str; return ret;
} }
/* Get time in human readable form with localtime() + asctime() */ /* Get time in human readable form with localtime() + asctime() */

View File

@ -79,7 +79,7 @@ int dec2octal(int decimal);
uoff_t str_to_uofft(const char *str); uoff_t str_to_uofft(const char *str);
/* convert all low-ascii (<32) to ^<A..> combinations */ /* convert all low-ascii (<32) to ^<A..> combinations */
char *show_lowascii(const char *channel); char *show_lowascii(const char *str);
/* Get time in human readable form with localtime() + asctime() */ /* Get time in human readable form with localtime() + asctime() */
char *my_asctime(time_t t); char *my_asctime(time_t t);