summaryrefslogtreecommitdiffabout
path: root/src
authorMichael Krelin <hacker@klever.net>2008-07-19 14:54:16 (UTC)
committer Michael Krelin <hacker@klever.net>2008-07-19 14:54:16 (UTC)
commit57a74ccfbdd7c1c419f069f999fb47cef53b6b12 (patch) (unidiff)
tree25c83369ad35d0c0481ebf7bbdc2d09df6e108bb /src
parent8a24019a28e046189e15fdbade21d1a716edbb56 (diff)
downloadnapkin-57a74ccfbdd7c1c419f069f999fb47cef53b6b12.zip
napkin-57a74ccfbdd7c1c419f069f999fb47cef53b6b12.tar.gz
napkin-57a74ccfbdd7c1c419f069f999fb47cef53b6b12.tar.bz2
whitespace-only change
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (limited to 'src') (more/less context) (ignore whitespace changes)
-rw-r--r--src/db.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db.cc b/src/db.cc
index 9ae5f8f..c350e68 100644
--- a/src/db.cc
+++ b/src/db.cc
@@ -23,25 +23,25 @@ namespace napkin {
23 throw napkin::exception("failed to get_current_dir_name()"); 23 throw napkin::exception("failed to get_current_dir_name()");
24 datadir = cwd; 24 datadir = cwd;
25 free(cwd); 25 free(cwd);
26#elif defined(HAVE_GETCWD) 26#elif defined(HAVE_GETCWD)
27 { 27 {
28 char cwd[ 28 char cwd[
29# if defined(MAXPATH) 29# if defined(MAXPATH)
30 MAXPATH 30 MAXPATH
31# elif defined(MAXPATHLEN) 31# elif defined(MAXPATHLEN)
32 MAXPATHLEN 32 MAXPATHLEN
33# else /* maxpath */ 33# else /* maxpath */
34 512 34 512
35#endif /* maxpath */ 35# endif /* maxpath */
36 ]; 36 ];
37 if(!getcwd(cwd,sizeof(cwd))) 37 if(!getcwd(cwd,sizeof(cwd)))
38 throw napkin::exception("failed to getcwd()"); 38 throw napkin::exception("failed to getcwd()");
39 datadir = cwd; 39 datadir = cwd;
40 } 40 }
41#else /* get cwd */ 41#else /* get cwd */
42# error dunno how to get current workdir 42# error dunno how to get current workdir
43#endif /* get cwd */ 43#endif /* get cwd */
44 datadir += "/."PACKAGE_NAME"/"; 44 datadir += "/."PACKAGE_NAME"/";
45 } 45 }
46 if(access(datadir.c_str(),R_OK|W_OK) 46 if(access(datadir.c_str(),R_OK|W_OK)
47 && mkdir(datadir.c_str(),0700)) 47 && mkdir(datadir.c_str(),0700))