diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2008-03-03 01:57:50 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2008-03-03 01:57:50 +0000 |
commit | cb7d969963a73ead75e6a00a4f933ad1e56c7d64 (patch) | |
tree | afa42fd816e95157f45de544c39dc0e21b02d635 /src/core | |
parent | 2e63374f31e933e9ca62d7174f9bc85bc943500d (diff) | |
download | irssi-cb7d969963a73ead75e6a00a4f933ad1e56c7d64.zip |
Rename some variables.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4718 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/misc.c | 18 | ||||
-rw-r--r-- | src/core/misc.h | 2 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/core/misc.c b/src/core/misc.c index 6feef0ed..0c404363 100644 --- a/src/core/misc.c +++ b/src/core/misc.c @@ -576,23 +576,23 @@ uoff_t str_to_uofft(const char *str) } /* 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); - while (*channel != '\0') { - if ((unsigned char) *channel >= 32) - *p++ = *channel; + ret = p = g_malloc(strlen(str)*2+1); + while (*str != '\0') { + if ((unsigned char) *str >= 32) + *p++ = *str; else { *p++ = '^'; - *p++ = *channel + 'A'-1; + *p++ = *str + 'A'-1; } - channel++; + str++; } *p = '\0'; - return str; + return ret; } /* Get time in human readable form with localtime() + asctime() */ diff --git a/src/core/misc.h b/src/core/misc.h index 35a9dfc8..b1096625 100644 --- a/src/core/misc.h +++ b/src/core/misc.h @@ -79,7 +79,7 @@ int dec2octal(int decimal); uoff_t str_to_uofft(const char *str); /* 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() */ char *my_asctime(time_t t); |