diff options
| author | Wayne Davison <wayned@samba.org> | 2006-11-13 00:27:04 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@samba.org> | 2006-11-13 00:27:04 +0000 |
| commit | 2c70847654b277b310f15189a73d2ccbf5802383 (patch) | |
| tree | c5d234b4118e4d17287c7a2e89d7948297fac573 /util.c | |
| parent | eaf895e6efca5348e96375425f15fc94ddebcd71 (diff) | |
| download | android_external_rsync-2c70847654b277b310f15189a73d2ccbf5802383.tar.gz android_external_rsync-2c70847654b277b310f15189a73d2ccbf5802383.tar.bz2 android_external_rsync-2c70847654b277b310f15189a73d2ccbf5802383.zip | |
Turned the char * args to push_dir() and pop_dir() into const char *.
Diffstat (limited to 'util.c')
| -rw-r--r-- | util.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -866,7 +866,7 @@ char *sanitize_path(char *dest, const char *p, const char *rootdir, int depth, /* Like chdir(), but it keeps track of the current directory (in the * global "curr_dir"), and ensures that the path size doesn't overflow. * Also cleans the path using the clean_fname() function. */ -int push_dir(char *dir, int set_path_only) +int push_dir(const char *dir, int set_path_only) { static int initialised; unsigned int len; @@ -913,7 +913,7 @@ int push_dir(char *dir, int set_path_only) * Reverse a push_dir() call. You must pass in an absolute path * that was copied from a prior value of "curr_dir". **/ -int pop_dir(char *dir) +int pop_dir(const char *dir) { if (chdir(dir)) return 0; |
