summaryrefslogtreecommitdiff
path: root/p11-kit/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'p11-kit/util.c')
-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. */