From bf9c6f06eea1bc9d99b53df6d7c08944aafcfc19 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sun, 29 Jun 2008 03:18:07 +0000 Subject: [PATCH] Removed the global variable 'home_specified' as it does not appear to be used for anything. --- citadel/citadel_dirs.c | 12 ------------ citadel/citadel_dirs.h | 1 - citadel/getmail.c | 1 - citadel/sendcommand.c | 1 - citadel/server_main.c | 1 - citadel/setup.c | 3 +-- 6 files changed, 1 insertion(+), 18 deletions(-) diff --git a/citadel/citadel_dirs.c b/citadel/citadel_dirs.c index c889640ef..f4233cefb 100644 --- a/citadel/citadel_dirs.c +++ b/citadel/citadel_dirs.c @@ -70,19 +70,7 @@ char file_funambol_msg[PATH_MAX] = ""; char file_dpsam_conf[PATH_MAX] = ""; char file_dspam_log[PATH_MAX] = ""; -int home_specified = 0; - - - - - - - - - /* calculate all our path on a central place */ - /* where to keep our config */ - #define COMPUTE_DIRECTORY(SUBDIR) memcpy(dirbuffer,SUBDIR, sizeof dirbuffer);\ snprintf(SUBDIR,sizeof SUBDIR, "%s%s%s%s%s%s%s", \ (home&!relh)?ctdl_home_directory:basedir, \ diff --git a/citadel/citadel_dirs.h b/citadel/citadel_dirs.h index 3d568a593..d8a9038fa 100644 --- a/citadel/citadel_dirs.h +++ b/citadel/citadel_dirs.h @@ -5,7 +5,6 @@ extern char ctdl_home_directory[PATH_MAX]; -extern int home_specified; /* all our directories */ diff --git a/citadel/getmail.c b/citadel/getmail.c index d2bb7a3a8..104921162 100644 --- a/citadel/getmail.c +++ b/citadel/getmail.c @@ -231,7 +231,6 @@ int main(int argc, char **argv) else safestrncpy(relhome, &argv[a][2], sizeof relhome); - home_specified = 1; home=1; } else { diff --git a/citadel/sendcommand.c b/citadel/sendcommand.c index ef76015de..45ff15c5d 100644 --- a/citadel/sendcommand.c +++ b/citadel/sendcommand.c @@ -197,7 +197,6 @@ int main(int argc, char **argv) else safestrncpy(relhome, &argv[a][2], sizeof relhome); - home_specified = 1; home=1; } else if (!strncmp(argv[a], "-w", 2)) { watchdog = atoi(&argv[a][2]); diff --git a/citadel/server_main.c b/citadel/server_main.c index 0503221da..2d7d65717 100644 --- a/citadel/server_main.c +++ b/citadel/server_main.c @@ -133,7 +133,6 @@ int main(int argc, char **argv) else safestrncpy(relhome, &argv[a][2], sizeof relhome); - home_specified = 1; home=1; } diff --git a/citadel/setup.c b/citadel/setup.c index d0cd21274..4637d9593 100644 --- a/citadel/setup.c +++ b/citadel/setup.c @@ -999,8 +999,7 @@ int main(int argc, char *argv[]) else safestrncpy(relhome, &argv[a][2], sizeof relhome); - home_specified = 1; - home=1; + home = 1; } } -- 2.30.2