diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-05-14 12:49:24 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-05-14 12:49:24 +0200 |
commit | 0b09bd900f857aac928cd7e6bc059b1e0c8b718a (patch) | |
tree | c94fc6e91939692746fd63c8c0787b3814bddf27 | |
parent | abc61fa1ccfa5472ab4dbc0088663f8b26582196 (diff) | |
download | libssh-0b09bd900f857aac928cd7e6bc059b1e0c8b718a.tar.gz libssh-0b09bd900f857aac928cd7e6bc059b1e0c8b718a.tar.xz libssh-0b09bd900f857aac928cd7e6bc059b1e0c8b718a.zip |
Typos in last patch
-rw-r--r-- | ConfigureChecks.cmake | 2 | ||||
-rw-r--r-- | include/libssh/priv.h | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index fd31e4ec..c214660f 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -48,7 +48,7 @@ if (WIN32) if(NOT HAVE_SNPRINTF) check_function_exists(_snprintf HAVE__SNPRINTF) check_function_exists(_snprintf_s HAVE__SNPRINTF_S) - endif(NOT HAVE_HAVE_SNPRINTF) + endif(NOT HAVE_SNPRINTF) check_function_exists(strncpy HAVE_STRNCPY) set(HAVE_SELECT TRUE) diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 77423bfb..f3c2babd 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -65,11 +65,13 @@ #ifndef HAVE_VSNPRINTF #ifdef HAVE__VSNPRINTF_S #define vsnprintf(s, n, f, v) _vsnprintf_s((s), (n), _TRUNCATE, (f), (v)) -#elif HAVE__VSNPRINTF +#else +#ifdef HAVE__VSNPRINTF #define vsnprintf _vsnprintf #else /* HAVE_VSNPRINTF */ #error "No vsnprintf compatible function found" -#endif +#endif /* HAVE__VSNPRINTF */ +#endif /* HAVE__VSNPRINTF_S */ #endif /* HAVE_VSNPRINTF */ #ifndef HAVE_STRNCPY |