Skip to content

Commit

Permalink
Remove stdlib.h from cdb2api.h
Browse files Browse the repository at this point in the history
Signed-off-by: Morgan Douglas <mdouglas47@bloomberg.net>
  • Loading branch information
morgando committed Jan 2, 2025
1 parent d2852e5 commit e4e357f
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 5 deletions.
1 change: 0 additions & 1 deletion cdb2api/cdb2api.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#define INCLUDED_CDB2API_H

#include <stdio.h>
#include <stdlib.h>

#if defined __cplusplus
extern "C" {
Expand Down
1 change: 1 addition & 0 deletions tests/tools/api_libs.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <stdio.h>
#include <stdlib.h>
#include <cdb2api.h>

typedef void (lib_cb)(void);
Expand Down
1 change: 1 addition & 0 deletions tests/tools/carray_insert.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <stdlib.h>
#include <libgen.h>
#include <string.h>

Expand Down
1 change: 1 addition & 0 deletions tests/tools/default_consumer.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

Expand Down
4 changes: 3 additions & 1 deletion tests/tools/insblob.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#include <cdb2api.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/time.h>
#include <limits.h>

#include <cdb2api.h>

int main(int argc, char **argv)
{
int rc;
Expand Down
4 changes: 3 additions & 1 deletion tests/tools/makerecord_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
Run 3 times and return the shortest runtime measured in microseconds.
*/

#include <cdb2api.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/time.h>
#include <limits.h>

#include <cdb2api.h>

int main(int argc, char **argv)
{
int rc;
Expand Down
4 changes: 3 additions & 1 deletion tests/tools/sqlite_clnt.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#include <stdlib.h>
#include <stdio.h>
#include <arpa/inet.h>

#include <cdb2api.h>
#include <sqlite3.h>
#include <arpa/inet.h>

void usage(FILE *f, char *argv0) {
fprintf(stderr, "Usage: %s <dbname> <tblname>\n", argv0);
Expand Down
4 changes: 3 additions & 1 deletion tests/tools/updblob.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#include <cdb2api.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/time.h>
#include <limits.h>

#include <cdb2api.h>

int main(int argc, char **argv)
{
int rc;
Expand Down

0 comments on commit e4e357f

Please sign in to comment.