summaryrefslogtreecommitdiff
path: root/p11-kit
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2012-06-29 16:10:47 +0200
committerStef Walter <stefw@gnome.org>2012-06-29 16:10:47 +0200
commitda2606bfbbdbd36d5e42bf2acf614735dfc515d2 (patch)
tree18b0ce3d3531b00c1f7be217a5da07e5218c7547 /p11-kit
parent89602ce99feb7e8c5a37634c3f577532f82eddbd (diff)
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
Diffstat (limited to 'p11-kit')
-rw-r--r--p11-kit/util.c26
1 files changed, 0 insertions, 26 deletions
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. */