Skip to contentSkip to conversation

Replace deprecated <strings.h> with <string.h>

PATCH Superseded Jozef Pupava 2 participants 3 messages Mar 25, 2020

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Replace deprecated <strings.h> with <string.h>

I guess this won't really solve anything, just the issue.

Closes #521

---
testcases/kernel/containers/share/ns_create.c
| 1 -
testcases/kernel/fs/fsx-linux/fsx-linux.c
| 2

+- .../open_posix_testsuite/conformance/interfaces/sem_timedwait/3-1.c
| 1

- .../open_posix_testsuite/conformance/interfaces/sem_timedwait/7-1.c | 1 - 4 files changed, 1 insertion(+), 4 deletions(-)

(quoted diff) +0 -0

b/testcases/kernel/containers/share/ns_create.c index 1d0339e71..d4259f38b 100644 --- a/testcases/kernel/containers/share/ns_create.c +++ b/testcases/kernel/containers/share/ns_create.c @@ -30,7 +30,6 @@
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
-#include <strings.h>
#include <errno.h>
#include "test.h"
#include "lapi/namespaces_constants.h"

(quoted diff) +0 -0

b/testcases/kernel/fs/fsx-linux/fsx-linux.c index 02f3eb827..4a20f4da6 100644 --- a/testcases/kernel/fs/fsx-linux/fsx-linux.c
+++ b/testcases/kernel/fs/fsx-linux/fsx-linux.c
@@ -43,7 +43,7 @@
#include <sys/param.h>
#include <limits.h>
#include <time.h>
-#include <strings.h>
+#include <string.h>
#include <sys/time.h>
#endif
#include <fcntl.h>
diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/3-1.c index dd42bbd91..fb6f2e6cb 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/3-1.c
+++
b/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/3-1.c @@ -20,7 +20,6 @@ #endif #include <semaphore.h> #include <stdio.h> -#include <strings.h>
#include <time.h>
#include <unistd.h>
#include "posixtest.h"
diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/7-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/7-1.c index 79de0af7f..73e174682 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/7-1.c
+++
b/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/7-1.c @@ -21,7 +21,6 @@ #endif #include <semaphore.h> #include <stdio.h> -#include <strings.h>
#include <time.h>
#include <unistd.h>
#include "posixtest.h"

Signature · 1 line
2.16.4
#1 lore raw

PATCH v2 1/1 Replace deprecated <strings.h> with <string.h>

Hi!

Quoted 1 line

I guess this won't really solve anything, just the issue.

Looks okay, but the patch got line-wrapped, possibly by your email client.

Signature · 2 lines
Cyril Hrubis
[email protected]
#2 lore raw

PATCH v2 1/1 Replace deprecated <strings.h> with <string.h>

Quoted 6 lines · On Wed, 25 Mar 2020 17:33:50 +0100 Cyril Hrubis <[email protected]> wrote:

Hi!

Quoted 1 line

I guess this won't really solve anything, just the issue.

Looks okay, but the patch got line-wrapped, possibly by your email client.

Ah, yes, sorry I have problems with git send-email so I used client and forgot about wrapping.

Jozef