diff options
author | unknown <monty@narttu.mysql.fi> | 2003-06-23 20:05:54 +0300 |
---|---|---|
committer | unknown <monty@narttu.mysql.fi> | 2003-06-23 20:05:54 +0300 |
commit | 68524c81feac77d7d0e8dca716738b5b59d98e3f (patch) | |
tree | 4786009a4571cb9c2f78de142df7098da40097c8 /mysys/mf_pack.c | |
parent | 35c2b9df7564c95c38f04fc4dbc3bebea81a9a41 (diff) | |
download | mariadb-git-68524c81feac77d7d0e8dca716738b5b59d98e3f.tar.gz |
Simple code cleanup
mysql-test/r/innodb.result:
Fixed test case after innodb optimize->analyze fix
mysys/mf_pack.c:
Added comments
sql/log_event.cc:
Fixed usage of fn_format()
sql/slave.cc:
Indentation fixes and comments cleanup
sql/sql_repl.cc:
Comment cleanup
Diffstat (limited to 'mysys/mf_pack.c')
-rw-r--r-- | mysys/mf_pack.c | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/mysys/mf_pack.c b/mysys/mf_pack.c index 8fba14f626b..b3aa347006e 100644 --- a/mysys/mf_pack.c +++ b/mysys/mf_pack.c @@ -253,15 +253,27 @@ void symdirget(char *dir) } #endif /* USE_SYMDIR */ - /* Unpacks dirname to name that can be used by open... */ - /* Make that last char of to is '/' if from not empty and - from doesn't end in FN_DEVCHAR */ - /* Uses cleanup_dirname and changes ~/.. to home_dir/.. */ - /* Returns length of new directory */ -uint unpack_dirname(my_string to, const char *from) +/* + Fixes a directroy name so that can be used by open() + + SYNOPSIS + unpack_dirname() + to Store result here. May be = from + from 'Packed' directory name (may contain ~) + + IMPLEMENTATION + Make that last char of to is '/' if from not empty and + from doesn't end in FN_DEVCHAR + Uses cleanup_dirname and changes ~/.. to home_dir/.. - /* to may be == from */ + Changes a UNIX filename to system filename (replaces / with \ on windows) + + RETURN + Length of new directory name (= length of to) +*/ + +uint unpack_dirname(my_string to, const char *from) { uint length,h_length; char buff[FN_REFLEN+1+4],*suffix,*tilde_expansion; |