Avoid calls to strlen in path processing functions.
authorDmitry Antipov <dmantipov@yandex.ru>
Tue, 10 Jul 2012 06:23:45 +0000 (10:23 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Tue, 10 Jul 2012 06:23:45 +0000 (10:23 +0400)
commitc293e30cd9f841e59ce6ae3b2757f0e6daf2e71d
tree6aaff4b91e43d732c4a7dea94ba3bf28a94b2955
parentaf6e839f9fadf33b22c145d3103f6e3d9656e804
Avoid calls to strlen in path processing functions.
* fileio.c (file_name_as_directory): Add comment.  Change to add
srclen argument and return the length of result.  Adjust users
accordingly.
(directory_file_name): Fix comment.  Change to add srclen argument,
swap 1nd and 2st arguments to obey the common convention.  Adjust
users accordingly.
* filelock.c (fill_in_lock_file_name): Avoid calls to strlen.
src/ChangeLog
src/fileio.c
src/filelock.c