Module: kamailio Branch: master Commit: 34f3ec9078e367c8da79760bc9c0d92a9a89b45c URL: https://github.com/kamailio/kamailio/commit/34f3ec9078e367c8da79760bc9c0d92a9a89b45c
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2026-01-26T10:10:56+01:00 kamcmd: removed unused function --- Modified: utils/kamcmd/kamcmd.c --- Diff: https://github.com/kamailio/kamailio/commit/34f3ec9078e367c8da79760bc9c0d92a9a89b45c.diff Patch: https://github.com/kamailio/kamailio/commit/34f3ec9078e367c8da79760bc9c0d92a9a89b45c.patch --- diff --git a/utils/kamcmd/kamcmd.c b/utils/kamcmd/kamcmd.c index 9190b6138ac..1198d8c0f02 100644 --- a/utils/kamcmd/kamcmd.c +++ b/utils/kamcmd/kamcmd.c @@ -171,30 +171,6 @@ struct cnt_var_grp *crt_cnt_grp; } while(0) -#define INT2STR_MAX_LEN (19 + 1 + 1) /* 2^64~= 16*10^18 => 19+1 digits + \0 */ - -/* returns a pointer to a static buffer containing l in asciiz & sets len */ -static inline char *int2str(unsigned int l, int *len) -{ - static char r[INT2STR_MAX_LEN]; - int i; - - i = INT2STR_MAX_LEN - 2; - r[INT2STR_MAX_LEN - 1] = 0; /* null terminate */ - do { - r[i] = l % 10 + '0'; - i--; - l /= 10; - } while(l && (i >= 0)); - if(l && (i < 0)) { - fprintf(stderr, "BUG: int2str: overflow\n"); - } - if(len) - *len = (INT2STR_MAX_LEN - 2) - i; - return &r[i + 1]; -} - - static char *trim_ws(char *l) { char *ret; _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
