Skip to content

Commit 2652ba2

Browse files
committed
Moved #incl of rtapi_string outside extern C
1 parent 040e514 commit 2652ba2

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/libnml/buffer/shmem.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ extern "C" {
2626
#include <sys/types.h> /* key_t */
2727
#include <errno.h> // errno
2828
#include <string.h> /* strchr(), memcpy(), memset() */
29-
#include <rtapi_string.h> /* rtapi_strlcpy */
3029
#include <stdlib.h> /* strtod */
3130
#include <physmem.hh> /* PHYSMEM_HANDLE */
3231

3332
#ifdef __cplusplus
3433
}
3534
#endif
35+
#include <rtapi_string.h> /* rtapi_strlcpy */
3636
#include "rcs_print.hh" /* rcs_print_error() */
3737
#include "cms.hh" /* class CMS */
3838
#include "shmem.hh" /* class SHMEM */

src/libnml/cms/tcp_srv.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ extern "C" {
2727
#endif
2828

2929
#include <string.h> // memset(), strerror()
30-
#include <rtapi_string.h> // rtapi_strlcpy
3130
#include <stdlib.h> // malloc(), free()
3231
#include <unistd.h>
3332
#include <sys/socket.h>
@@ -39,6 +38,8 @@ extern "C" {
3938
}
4039
#endif
4140

41+
#include <rtapi_string.h> // rtapi_strlcpy
42+
4243
#include <sys/types.h>
4344
#include <sys/wait.h> // waitpid
4445

src/libnml/nml/nml_srv.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ extern "C" {
1717
#endif
1818

1919
#include <string.h> // memcpy()
20-
#include <rtapi_string.h> // rtapi_strlcpy()
2120

2221
#include <signal.h> // kill()
2322
#include <sys/types.h>
@@ -28,6 +27,7 @@ extern "C" {
2827
#ifdef __cplusplus
2928
}
3029
#endif
30+
#include <rtapi_string.h> // rtapi_strlcpy()
3131
#include "nml.hh"
3232
#include "nmlmsg.hh"
3333
#include "cms.hh"

0 commit comments

Comments
 (0)