From da2606bfbbdbd36d5e42bf2acf614735dfc515d2 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 29 Jun 2012 16:10:47 +0200 Subject: Win32 build fixes * Remove unused functions * Use getprogname() instead of calc_progname() which no longer exists * Fix up exporting of functions in the mock module --- p11-kit/util.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'p11-kit') diff --git a/p11-kit/util.c b/p11-kit/util.c index f8ec1e6..ccc954c 100644 --- a/p11-kit/util.c +++ b/p11-kit/util.c @@ -457,32 +457,6 @@ DllMain (HINSTANCE instance, return TRUE; } -extern char **__argv; - -static char * -get_default_progname (void) -{ - const char *name; - const char *p; - char *progname; - size_t length; - - name = __argv[0]; - if (name == NULL) - return NULL; - - p = strrchr (name, '\\'); - if (p != NULL) - name = p + 1; - - progname = strdup (name); - length = strlen (progname); - if (length > 4 && _stricmp(progname + (length - 4), ".exe")) - progname[length - 4] = '\0'; - - return progname; -} - #endif /* OS_WIN32 */ /* This is the progname that we think of this process as. */ -- cgit v1.1