Skip to content

Commit 9c2d257

Browse files
authored
Merge pull request #1206 from openziti/fix.warnings
update [email protected]
2 parents 0c45577 + 7c720c2 commit 9c2d257

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.21)
22

33

44
set(ZITI_SDK_DIR "" CACHE FILEPATH "developer option: use local ziti-sdk-c checkout")
5-
set(ZITI_SDK_VERSION "1.8.2" CACHE STRING "ziti-sdk-c version or branch to use")
5+
set(ZITI_SDK_VERSION "1.8.3" CACHE STRING "ziti-sdk-c version or branch to use")
66

77
# if TUNNEL_SDK_ONLY then don't descend into programs/ziti-edge-tunnel
88
option(TUNNEL_SDK_ONLY "build only ziti-tunnel-sdk (without ziti)" OFF)

lib/ziti-tunnel-cbs/ziti_tunnel_ctrl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ static void ip_dump(const tunnel_ip_stats *stats, dump_writer writer, void *writ
191191
char local_addr[64];
192192
char remote_addr[64];
193193
for (i = 0; conns[i] != NULL; i++) {
194-
snprintf(local_addr, sizeof(local_addr), "%s:%ld", conns[i]->local_ip, conns[i]->local_port);
195-
snprintf(remote_addr, sizeof(remote_addr), "%s:%ld", conns[i]->remote_ip, conns[i]->remote_port);
194+
snprintf(local_addr, sizeof(local_addr), "%s:%lld", conns[i]->local_ip, conns[i]->local_port);
195+
snprintf(remote_addr, sizeof(remote_addr), "%s:%lld", conns[i]->remote_ip, conns[i]->remote_port);
196196
writer(writer_ctx, "%-12s%-40s%-40s%-16s%-24s\n",
197197
conns[i]->protocol, local_addr, remote_addr, conns[i]->state, conns[i]->service);
198198
}
@@ -404,7 +404,7 @@ static int process_cmd(const tunnel_command *cmd, command_cb cb, void *ctx) {
404404
if (dump_path != NULL) {
405405
uv_timeval64_t now;
406406
uv_gettimeofday(&now);
407-
struct tm *tm = gmtime(&now.tv_sec);
407+
struct tm *tm = gmtime((time_t *) &now.tv_sec);
408408
snprintf(dump_file, sizeof(dump_file), "%s/%04d-%02d-%02dT%02d:%02d:%02d.%03dZ.ip_dump", dump_path,
409409
1900 + tm->tm_year, tm->tm_mon + 1, tm->tm_mday,
410410
tm->tm_hour, tm->tm_min, tm->tm_sec, now.tv_usec / 1000);

programs/ziti-edge-tunnel/ipc_cmd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ static void on_command_resp(const tunnel_result* result, void *ctx) {
197197
free_tunnel_on_off_identity(&on_off_id);
198198
break;
199199
}
200+
default:
201+
ZITI_LOG(DEBUG, "ignoring command %s", TunnelCommands.name(tnl_res_cmd.command));
200202
case TunnelCommand_Unknown: {
201203
break;
202204
}

programs/ziti-edge-tunnel/process_cmd.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,9 @@ bool process_tunnel_commands(const tunnel_command *tnl_cmd, command_cb cb, void
425425

426426
free_tunnel_status_change(&tunnel_status_change_opts);
427427
}
428+
#else
429+
case TunnelCommand_ServiceControl:
430+
case TunnelCommand_StatusChange:
428431
#endif
429432
case TunnelCommand_Unknown:
430433
case TunnelCommand_ZitiDump:

0 commit comments

Comments
 (0)