Formatting & whitespace removal.

SVN revision: 32985
This commit is contained in:
Christopher Michael 2007-12-04 22:20:25 +00:00
parent f0467da019
commit 9335742e16
1 changed files with 6 additions and 6 deletions

View File

@ -9,7 +9,7 @@ e_user_homedir_get(void)
{ {
char *homedir; char *homedir;
int len; int len;
homedir = getenv("HOME"); homedir = getenv("HOME");
if (!homedir) return "/tmp"; if (!homedir) return "/tmp";
len = strlen(homedir); len = strlen(homedir);
@ -30,9 +30,10 @@ EAPI const char *
e_user_desktop_dir_get(void) e_user_desktop_dir_get(void)
{ {
static char dir[PATH_MAX] = ""; static char dir[PATH_MAX] = "";
if (!dir[0]) if (!dir[0])
snprintf(dir, sizeof(dir), "%s/applications", efreet_data_home_get()); snprintf(dir, sizeof(dir), "%s/applications", efreet_data_home_get());
return dir; return dir;
} }
@ -45,10 +46,9 @@ EAPI const char *
e_user_icon_dir_get(void) e_user_icon_dir_get(void)
{ {
static char dir[PATH_MAX] = ""; static char dir[PATH_MAX] = "";
if (!dir[0]) if (!dir[0])
snprintf(dir, sizeof(dir), "%s/icons", efreet_data_home_get()); snprintf(dir, sizeof(dir), "%s/icons", efreet_data_home_get());
return dir; return dir;
} }