summaryrefslogtreecommitdiff
path: root/windows
diff options
context:
space:
mode:
Diffstat (limited to 'windows')
-rw-r--r--windows/main.c12
-rw-r--r--windows/misc.c4
2 files changed, 12 insertions, 4 deletions
diff --git a/windows/main.c b/windows/main.c
index 09198d5d0..86e06b193 100644
--- a/windows/main.c
+++ b/windows/main.c
@@ -43,6 +43,18 @@ static char **respaths; /** resource search path vector. */
char *options_file_location;
+/**
+ * Cause an abnormal program termination.
+ *
+ * \note This never returns and is intended to terminate without any cleanup.
+ *
+ * \param error The message to display to the user.
+ */
+static void die(const char *error)
+{
+ exit(1);
+}
+
static nsurl *gui_get_resource_url(const char *path)
{
char buf[PATH_MAX];
diff --git a/windows/misc.c b/windows/misc.c
index 3bf06f852..ad7ce0d84 100644
--- a/windows/misc.c
+++ b/windows/misc.c
@@ -37,8 +37,4 @@ void warn_user(const char *warning, const char *detail)
MessageBox(NULL, message, "Warning", MB_ICONWARNING);
}
-void die(const char *error)
-{
- exit(1);
-}