[-]
[+]
|
Changed |
qstat.spec
|
|
[-]
[+]
|
Added |
0001-remove-strndup-redef.diff
^
|
@@ -0,0 +1,40 @@
+From 85de1bdd548462a1768084ce567d53af71761ca2 Mon Sep 17 00:00:00 2001
+From: Ludwig Nussel <ludwig.nussel@suse.de>
+Date: Mon, 9 Feb 2015 12:02:52 +0100
+Subject: [PATCH] remove strndup redef
+
+---
+ qstat.c | 10 ----------
+ 1 file changed, 10 deletions(-)
+
+diff --git a/qstat.c b/qstat.c
+index aee28f3..e78754f 100644
+--- a/qstat.c
++++ b/qstat.c
+@@ -2630,7 +2630,6 @@ static int big_endian;
+ unsigned int swap_long(void*);
+ unsigned short swap_short(void*);
+ float swap_float_from_little(void *f);
+-char *strndup(const char *string, size_t len);
+ #define FORCE 1
+
+ /* Print an error message and the program usage notes
+@@ -12107,15 +12106,6 @@ query_status_t deal_with_gamespy_master_response(struct qserver *server, char *r
+ /* Misc utility functions
+ */
+
+-char *strndup(const char *string, size_t len)
+-{
+- char *result;
+- result = (char*)malloc(len + 1);
+- memcpy(result, string, len);
+- result[len] = '\0';
+- return result;
+-}
+-
+ unsigned int swap_long(void *l)
+ {
+ unsigned char *b = (unsigned char*)l;
+--
+2.2.2
+
|
|
Deleted |
qstat-2.11.20090718.tar.bz2
^
|
|
Deleted |
qstat-2.11.tar.gz
^
|
|
Added |
qstat-2.15+git1422059908.60da59b.tar.xz
^
|