nuttx-apps/system/zmodem
Xiang Xiao a6477ec8dc !apps: replace sclock_t with clock_t and drop redundant time_t/off_t casts
Align with the upstream nuttx change that drops the sclock_t alias now
that clock_t is itself a signed 64-bit type (int64_t).  Beyond the pure
sclock_t -> clock_t rename, this commit also removes the
now-unnecessary (time_t)-1 / (time_t)0 / (off_t)-1 casts that were
papering over the previously-unsigned time_t.

Files touched:

  - examples/alarm/alarm_main.c:        sclock_t -> clock_t
  - netutils/dhcpd/dhcpd.c:             sclock_t -> clock_t
  - netutils/ftpd/ftpd.c:               sclock_t -> clock_t
  - netutils/thttpd/libhttpd.c,
    netutils/thttpd/tdate_parse.c:      drop (time_t)-1 / (time_t)0 /
                                        (off_t)-1 sentinel casts
  - system/resmonitor/filldisk.c,
    system/zmodem/zm_receive.c:         sclock_t -> clock_t
  - testing/ostest/wdog.c:              sclock_t -> clock_t (the bulk
                                        of the rename, 30 sites)
  - testing/testsuites/kernel/syscall/cases/{clock_nanosleep_test,
    fsync_test,time_test}.c:            drop (time_t)-1 casts in the
                                        new signed-time_t world

No behavioural change.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-05-11 17:38:32 +08:00
..
host !compiler: drop CONFIG_HAVE_LONG_LONG and require long long support 2026-05-11 17:38:32 +08:00
.gitignore build: Remve the unnecessary .gitignore 2020-05-23 15:56:35 +01:00
CMakeLists.txt system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Kconfig Typo fixes. 2022-01-06 10:30:41 +08:00
Make.defs system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Makefile system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
Makefile.host system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
rz_main.c system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
sz_main.c system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
zm.h include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
zm_proto.c libs/libc/crc16: Separate implementation of crc16xmodem from crc16 2025-04-10 22:38:48 +08:00
zm_receive.c !apps: replace sclock_t with clock_t and drop redundant time_t/off_t casts 2026-05-11 17:38:32 +08:00
zm_send.c libs/libc/crc16: Separate implementation of crc16xmodem from crc16 2025-04-10 22:38:48 +08:00
zm_state.c libs/libc/crc16: Separate implementation of crc16xmodem from crc16 2025-04-10 22:38:48 +08:00
zm_utils.c system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00
zm_watchdog.c system: migrate to SPDX identifier 2024-12-30 18:02:50 +08:00