aboutsummaryrefslogtreecommitdiff
path: root/net/xorp/files/patch-strptime.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/xorp/files/patch-strptime.c')
-rw-r--r--net/xorp/files/patch-strptime.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/net/xorp/files/patch-strptime.c b/net/xorp/files/patch-strptime.c
new file mode 100644
index 000000000000..a1173200ca33
--- /dev/null
+++ b/net/xorp/files/patch-strptime.c
@@ -0,0 +1,15 @@
+--- libxorp/strptime.c.orig 2018-07-10 12:54:53 UTC
++++ libxorp/strptime.c
+@@ -85,10 +85,10 @@
+ #define TM_YEAR_BASE 1900
+ #endif
+
+-static inline void *
++static inline const char *
+ UNCONST(const void *a)
+ {
+- return ((const char *)a - (const char *)0) + (char *)0;
++ return ((const char *)a - sizeof((const char *)0)) + sizeof((char *)0);
+ }
+
+