Skip to content

Commit 3397de4

Browse files
committed
Merge branch 'maint-1.2' into maint-1.3
Conflicts: src/OVAL/probes/fsdev.c tests/API/probes/Makefile.am
2 parents a9a8319 + ff46197 commit 3397de4

File tree

4 files changed

+3
-13
lines changed

4 files changed

+3
-13
lines changed

src/OVAL/probes/fsdev.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static int fsdev_cmp(const void *a, const void *b)
7777
#define DEVID_ARRAY_ADD 8
7878

7979
#if defined(OS_LINUX)
80-
int is_local_fs(struct mntent *ment)
80+
static int is_local_fs(struct mntent *ment)
8181
{
8282
// todo: would it be usefull to provide the choice during build-time?
8383
#if 1
@@ -127,7 +127,7 @@ int is_local_fs(struct mntent *ment)
127127
}
128128

129129
#elif defined(OS_AIX)
130-
int is_local_fs(struct mntent *ment)
130+
static int is_local_fs(struct mntent *ment)
131131
{
132132
int i;
133133
struct vfs_ent *e;

src/OVAL/probes/fsdev.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,4 @@ int fsdev_path(fsdev_t *lfs, const char *path);
8585
*/
8686
int fsdev_fd(fsdev_t *lfs, int fd);
8787

88-
#if defined(__linux__) || defined(_AIX)
89-
/**
90-
* Detemines whether a given mtab entry is a local file system.
91-
* @param ment Structure returned by getmntent (see `man 3 getmntent`).
92-
* @retval 1 if local
93-
* @retval 0 otherwise
94-
*/
95-
int is_local_fs(struct mntent *ment);
96-
#endif
97-
9888
#endif /* FSDEV_H */

tests/API/probes/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ target_include_directories(test_api_probes_smoke PUBLIC
1010
)
1111
add_oscap_test_executable(test_fsdev_is_local_fs
1212
"test_fsdev_is_local_fs.c"
13-
"${CMAKE_SOURCE_DIR}/src/OVAL/probes/fsdev.c"
1413
)
1514
target_include_directories(test_fsdev_is_local_fs PUBLIC
1615
"${CMAKE_SOURCE_DIR}/src/OVAL/probes"

tests/API/probes/test_fsdev_is_local_fs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <string.h>
2929
#include <mntent.h>
3030
#include "fsdev.h"
31+
#include "fsdev.c"
3132

3233
static int test_single_call()
3334
{

0 commit comments

Comments
 (0)