]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/util/unix.c
don't use & in getcwd parameter
[netatalk.git] / libatalk / util / unix.c
index beb9ab5a3fe2958eb02e9ab7a7ea69d6d40277a6..5ebd3e5c0c6204dabb8d3fabe4b2a1c606db19f1 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  $Id: unix.c,v 1.1 2010-01-05 13:48:47 franklahm Exp $
+  $Id: unix.c,v 1.3 2010-01-26 08:05:17 didg Exp $
   Copyright (c) 2010 Frank Lahm <franklahm@gmail.com>
 
   This program is free software; you can redistribute it and/or modify
   GNU General Public License for more details.
 */
 
+/*!
+ * @file
+ * Netatalk utility functions
+ */
+
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif /* HAVE_CONFIG_H */
 #include <atalk/util.h>
 #include <atalk/unix.h>
 
+/*!
+ * @brief get cwd in static buffer
+ *
+ * @returns pointer to path or pointer to error messages on error
+ */
 extern const char *getcwdpath(void)
 {
     static char cwd[MAXPATHLEN + 1];
     char *p;
 
-    if ((p = getcwd(&cwd, MAXPATHLEN)) != NULL)
+    if ((p = getcwd(cwd, MAXPATHLEN)) != NULL)
         return p;
     else
         return strerror(errno);