summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-01-26 00:12:35 +0000
committerJeremy Allison <jra@samba.org>2000-01-26 00:12:35 +0000
commitd867b86721e988dee56d5e9382b32c870ccb2790 (patch)
treea19b4985a60d194abe083f9b0a6260c0c090b232 /source3/client
parentb5e7e4277d87c9eaa663f92c081a869b34170380 (diff)
downloadsamba-d867b86721e988dee56d5e9382b32c870ccb2790.tar.gz
samba-d867b86721e988dee56d5e9382b32c870ccb2790.tar.bz2
samba-d867b86721e988dee56d5e9382b32c870ccb2790.zip
Second set of inline optimisation fixes from Ying Chen <ying@almaden.ibm.com>.
Stop makeing function calls for every use of skip_multibyte_char. This function is called several *million* times during a NetBench run :-). Jeremy. (This used to be commit e5a3deba46ea2d4cb49a6c4b73edd766fe8b5a5c)
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/clitar.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/client/clitar.c b/source3/client/clitar.c
index f50c4b4288..d71eff1c9e 100644
--- a/source3/client/clitar.c
+++ b/source3/client/clitar.c
@@ -427,8 +427,8 @@ static void fixtarname(char *tptr, char *fp, int l)
*tptr++='.';
while (l > 0) {
- int skip;
- if((skip = skip_multibyte_char( *fp)) != 0) {
+ int skip = get_character_len(*fp);
+ if(skip != 0) {
if (skip == 2) {
*tptr++ = *fp++;
*tptr++ = *fp++;
@@ -885,8 +885,8 @@ static void unfixtarname(char *tptr, char *fp, int l, BOOL first)
}
while (l > 0) {
- int skip;
- if(( skip = skip_multibyte_char( *fp )) != 0) {
+ int skip = get_character_len(*fp);
+ if(skip != 0) {
if (skip == 2) {
*tptr++ = *fp++;
*tptr++ = *fp++;