summaryrefslogtreecommitdiff
path: root/src/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/system.h b/src/system.h
index 8577d4464..ee0d25cd9 100644
--- a/src/system.h
+++ b/src/system.h
@@ -631,3 +631,9 @@ timetostr (time_t t, char *buf)
? imaxtostr (t, buf)
: umaxtostr (t, buf));
}
+
+static inline char *
+bad_cast (char const *s)
+{
+ return (char *) s;
+}