Skip to content

Commit f8292e8

Browse files
committed
Need valid int function for api
Signed-off-by: Salil Chandra <schandra107@bloomberg.net>
1 parent 9fdb50b commit f8292e8

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

cdb2api/cdb2api.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,11 +1485,7 @@ void cdb2_set_sockpool(const char *sp_path)
14851485
SOCKPOOL_OTHER_NAME = strdup(sp_path);
14861486
}
14871487

1488-
#ifndef CDB2API_SERVER
1489-
static
1490-
#endif
1491-
int
1492-
cdb2_is_valid_int(const char *str)
1488+
int cdb2_is_valid_int(const char *str)
14931489
{
14941490
while (*str) {
14951491
if (!isdigit(*str))

cdb2api/cdb2api_int.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ extern "C" {
3232
#ifdef CDB2API_SERVER
3333
// use this one for fastsql since client_sbuf and server_sbuf are different
3434
int cdb2_socket_pool_get_fd(cdb2_hndl_tp *hndl, const char *typestr, int dbnum, int *port);
35-
#endif
3635
void cdb2_socket_pool_donate_ext(const cdb2_hndl_tp *hndl, const char *typestr, int fd, int ttl, int dbnum);
36+
#endif
3737

3838
#ifdef CDB2API_SERVER
3939
int cdb2_send_2pc(cdb2_hndl_tp *hndl, char *dbname, char *pname, char *ptier, char *source, unsigned int op,
@@ -52,9 +52,10 @@ void cdb2_hndl_set_min_retries(cdb2_hndl_tp *hndl, int min_retries);
5252
int cdb2_get_comdb2db(char **comdb2db_name, char **comdb2db_class);
5353

5454
void cdb2_set_debug_trace(cdb2_hndl_tp *hndl);
55-
int cdb2_is_valid_int(const char *str);
5655
#endif
5756

57+
int cdb2_is_valid_int(const char *str);
58+
5859
struct cdb2_identity {
5960
void (*resetIdentity_start)();
6061
void (*resetIdentity_end)(int);

0 commit comments

Comments
 (0)