Module: kamailio Branch: master Commit: ae1223e4236ce730448f32c262afec4c11e30eba URL: https://github.com/kamailio/kamailio/commit/ae1223e4236ce730448f32c262afec4c11e30eba
Author: Daniel-Constantin Mierla <mico...@gmail.com> Committer: Daniel-Constantin Mierla <mico...@gmail.com> Date: 2023-06-15T11:31:59+02:00 cdp: fix storage warning on time value --- Modified: src/modules/cdp/receiver.c --- Diff: https://github.com/kamailio/kamailio/commit/ae1223e4236ce730448f32c262afec4c11e30eba.diff Patch: https://github.com/kamailio/kamailio/commit/ae1223e4236ce730448f32c262afec4c11e30eba.patch --- diff --git a/src/modules/cdp/receiver.c b/src/modules/cdp/receiver.c index 61d932743a..821b3777e8 100644 --- a/src/modules/cdp/receiver.c +++ b/src/modules/cdp/receiver.c @@ -124,8 +124,8 @@ static int make_send_pipe(serviced_peer_t *sp) { local_id++; sp->send_pipe_name.s = shm_malloc(sizeof(PIPE_PREFIX) + 64); - sprintf(sp->send_pipe_name.s, "%s%d_%d_%d", PIPE_PREFIX, getpid(), local_id, - (unsigned int)time(0)); + sprintf(sp->send_pipe_name.s, "%s%d_%d_%u", PIPE_PREFIX, getpid(), local_id, + (unsigned int)(unsigned long long)time(0)); sp->send_pipe_name.len = strlen(sp->send_pipe_name.s); if(mkfifo(sp->send_pipe_name.s, 0666) < 0) { _______________________________________________ Kamailio (SER) - Development Mailing List To unsubscribe send an email to sr-dev-le...@lists.kamailio.org