compat.c: In basename() a typo had gone undetected through the review process,
and also that the declaration was a little bit different from what's defined in
compat.h
misc.c: commit
9449e6a9eba30c9ed054f57d630a88c9f087080f adds #include <unistd.h>.
This breaks building on Windows. As unistd.h is already loaded via syshead.h on
systems where unistd.h exists, we don't need it here.
Signed-off-by: David Sommerseth <davids@redhat.com>
Tested-by: Samuli Seppänen <samuli@openvpn.net>
* This version is extended to handle both / and \ in path names
*/
char *
-basename (const char *filename)
+basename (char *filename)
{
- char *p = strrchr (filenamem, '/');
+ char *p = strrchr (filename, '/');
if (!p) {
/* If NULL, check for \ instead ... might be Windows a path */
p = strrchr (filename, '\\');
#include "crypto.h"
#include "route.h"
#include "win32.h"
-#include <unistd.h>
#include "memdbg.h"