aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2004-10-02 06:28:50 +0000
committerJason Woodward2004-10-02 06:28:50 +0000
commit41564a244df8ab9071f2a3caf1e663923ff81d54 (patch)
tree0a299d6fcbba333bf3d565716b5e1aa4f008b78d /src
parenta8502005c4771b80449bf0843a53332493320519 (diff)
downloadslapt-get-41564a244df8ab9071f2a3caf1e663923ff81d54.tar.gz
renamed DIR *tmp to DIR *dir
Diffstat (limited to 'src')
-rw-r--r--src/configuration.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/configuration.c b/src/configuration.c
index bc30d3d..cc9acee 100644
--- a/src/configuration.c
+++ b/src/configuration.c
@@ -159,11 +159,11 @@ void working_dir_init(const rc_config *global_config){
}
void clean_pkg_dir(const char *dir_name){
- DIR *tmp;
+ DIR *dir;
struct dirent *file;
struct stat file_stat;
- if( (tmp = opendir(dir_name)) == NULL ){
+ if( (dir = opendir(dir_name)) == NULL ){
fprintf(stderr,_("Failed to opendir %s\n"),dir_name);
return;
}
@@ -173,7 +173,7 @@ void clean_pkg_dir(const char *dir_name){
return;
}
- while( (file = readdir(tmp)) ){
+ while( (file = readdir(dir)) ){
/* make sure we don't have . or .. */
if( (strcmp(file->d_name,"..")) == 0 || (strcmp(file->d_name,".") == 0) )
@@ -199,7 +199,7 @@ void clean_pkg_dir(const char *dir_name){
unlink(file->d_name);
}
}
- closedir(tmp);
+ closedir(dir);
}