summaryrefslogtreecommitdiff
path: root/src/lib/efreet
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-14 20:56:55 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-14 20:56:55 +0900
commit3539afeaf0c54eb5f03a1cefa5d8634a545f3eea (patch)
tree92f68081c2f5d0143e11f81564c86d16ce0fbf9b /src/lib/efreet
parenta2d8c1651ba14a97d2accb2b78fef1b7f5d1202f (diff)
make indenting consistent
this doesnt mean its right - it just matches. efreet needs some indent love.
Diffstat (limited to 'src/lib/efreet')
-rw-r--r--src/lib/efreet/efreet_base.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/efreet/efreet_base.c b/src/lib/efreet/efreet_base.c
index f43b1ddc7c..6c8f827b7a 100644
--- a/src/lib/efreet/efreet_base.c
+++ b/src/lib/efreet/efreet_base.c
@@ -277,24 +277,24 @@ efreet_dirs_init(void)
277 277
278 /* efreet_home_dir */ 278 /* efreet_home_dir */
279#if defined(HAVE_GETUID) && defined(HAVE_GETEUID) 279#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
280 if (getuid() != geteuid()) 280 if (getuid() != geteuid())
281 { 281 {
282 struct passwd *pw = getpwent(); 282 struct passwd *pw = getpwent();
283 283
284 if ((pw) && (pw->pw_dir)) efreet_home_dir = pw->pw_dir; 284 if ((pw) && (pw->pw_dir)) efreet_home_dir = pw->pw_dir;
285 } 285 }
286 else 286 else
287#endif 287#endif
288 efreet_home_dir = getenv("HOME"); 288 efreet_home_dir = getenv("HOME");
289 289
290#ifdef _WIN32 290#ifdef _WIN32
291 if (!efreet_home_dir || efreet_home_dir[0] == '\0') 291 if (!efreet_home_dir || efreet_home_dir[0] == '\0')
292 { 292 {
293 efreet_home_dir = getenv("USERPROFILE"); 293 efreet_home_dir = getenv("USERPROFILE");
294 } 294 }
295#endif 295#endif
296 if (!efreet_home_dir || efreet_home_dir[0] == '\0') 296 if (!efreet_home_dir || efreet_home_dir[0] == '\0')
297 efreet_home_dir = "/tmp"; 297 efreet_home_dir = "/tmp";
298 298
299 efreet_home_dir = eina_stringshare_add(efreet_home_dir); 299 efreet_home_dir = eina_stringshare_add(efreet_home_dir);
300 300
@@ -322,9 +322,9 @@ efreet_dirs_init(void)
322 322
323 /* hostname */ 323 /* hostname */
324 if (gethostname(buf, sizeof(buf)) < 0) 324 if (gethostname(buf, sizeof(buf)) < 0)
325 hostname = eina_stringshare_add(""); 325 hostname = eina_stringshare_add("");
326 else 326 else
327 hostname = eina_stringshare_add(buf); 327 hostname = eina_stringshare_add(buf);
328} 328}
329 329
330/** 330/**