Skip to content

Commit db85217

Browse files
committed
Make SEAP string buffer private
1 parent dc49df9 commit db85217

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
lines changed

src/OVAL/probes/SEAP/_sexp-output.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include "public/sexp-output.h"
3131
#include "_sexp-manip.h"
3232
#include "../../../common/util.h"
33+
#include "generic/strbuf.h"
3334

3435

3536
struct SEXP_ostate {

src/OVAL/probes/SEAP/public/strbuf.h renamed to src/OVAL/probes/SEAP/generic/strbuf.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,23 +54,23 @@ typedef struct {
5454
size_t size;
5555
} strbuf_t;
5656

57-
OSCAP_API strbuf_t *strbuf_new (size_t max);
58-
OSCAP_API void strbuf_free (strbuf_t *buf);
57+
strbuf_t *strbuf_new(size_t max);
58+
void strbuf_free(strbuf_t *buf);
5959

60-
OSCAP_API int strbuf_add (strbuf_t *buf, const char *str, size_t len);
61-
OSCAP_API int strbuf_addf (strbuf_t *buf, char *str, size_t len);
62-
OSCAP_API int strbuf_addc (strbuf_t *buf, char ch);
60+
int strbuf_add(strbuf_t *buf, const char *str, size_t len);
61+
int strbuf_addf(strbuf_t *buf, char *str, size_t len);
62+
int strbuf_addc(strbuf_t *buf, char ch);
6363

64-
OSCAP_API size_t strbuf_size (strbuf_t *buf);
65-
OSCAP_API int strbuf_trunc (strbuf_t *buf, size_t len);
66-
OSCAP_API size_t strbuf_length (strbuf_t *buf);
64+
size_t strbuf_size(strbuf_t *buf);
65+
int strbuf_trunc(strbuf_t *buf, size_t len);
66+
size_t strbuf_length(strbuf_t *buf);
6767

68-
OSCAP_API char *strbuf_cstr (strbuf_t *buf);
69-
OSCAP_API char *strbuf_cstr_r (strbuf_t *buf, char *str, size_t len);
70-
OSCAP_API char *strbuf_copy (strbuf_t *buf, void *dst, size_t len);
68+
char *strbuf_cstr(strbuf_t *buf);
69+
char *strbuf_cstr_r(strbuf_t *buf, char *str, size_t len);
70+
char *strbuf_copy(strbuf_t *buf, void *dst, size_t len);
7171

72-
OSCAP_API size_t strbuf_fwrite (FILE *fp, strbuf_t *buf);
73-
OSCAP_API ssize_t strbuf_write (strbuf_t *buf, int fd);
72+
size_t strbuf_fwrite(FILE *fp, strbuf_t *buf);
73+
ssize_t strbuf_write(strbuf_t *buf, int fd);
7474

7575
#ifdef __cplusplus
7676
}

src/OVAL/probes/SEAP/public/sexp-output.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include <unistd.h>
3232
#endif
3333
#include <sexp-types.h>
34-
#include <strbuf.h>
34+
#include "generic/strbuf.h"
3535
#include "oscap_export.h"
3636

3737
#ifdef __cplusplus

src/OVAL/probes/SEAP/sexp-output.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#include <assert.h>
3939

4040
#include "generic/common.h"
41-
#include "public/strbuf.h"
41+
#include "generic/strbuf.h"
4242
#include "_sexp-types.h"
4343
#include "_sexp-output.h"
4444
#include "_sexp-value.h"

0 commit comments

Comments
 (0)