aboutsummaryrefslogtreecommitdiff
path: root/libssh/misc.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-02-02 16:09:38 +0000
committerAndreas Schneider <mail@cynapses.org>2009-02-02 16:09:38 +0000
commit974a160fd31c10852e9bb811d14a33cff1bae7c4 (patch)
tree4bda1914a6a8f141a4faf57014cf54a868a0c0f2 /libssh/misc.c
parent5e03a95a937c8c64e4bfab8f796d88a4168857bd (diff)
downloadlibssh-974a160fd31c10852e9bb811d14a33cff1bae7c4.tar.gz
libssh-974a160fd31c10852e9bb811d14a33cff1bae7c4.tar.xz
libssh-974a160fd31c10852e9bb811d14a33cff1bae7c4.zip
Fix several build warnings.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@214 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/misc.c')
-rw-r--r--libssh/misc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libssh/misc.c b/libssh/misc.c
index 0ec37b2b..cd3f1cbb 100644
--- a/libssh/misc.c
+++ b/libssh/misc.c
@@ -36,10 +36,10 @@ MA 02111-1307, USA. */
#include <pwd.h>
#endif
-#include "libssh/libssh.h"
+#include "libssh/priv.h"
#ifndef _WIN32
-char *ssh_get_user_home_dir(){
+char *ssh_get_user_home_dir(void) {
static char szPath[PATH_MAX] = {0};
struct passwd *pwd = NULL;
@@ -55,7 +55,7 @@ char *ssh_get_user_home_dir(){
#else /* _WIN32 */
-char *ssh_get_user_home_dir(){
+char *ssh_get_user_home_dir(void) {
static char szPath[MAX_PATH];
if (SHGetSpecialFolderPathA(NULL, szPath, CSIDL_PROFILE, TRUE))
return szPath;
@@ -72,7 +72,6 @@ int ssh_file_readaccess_ok(char *file){
return 0;
}
-
u64 ntohll(u64 a){
#ifdef WORDS_BIGENDIAN
return a;