Changeset 3910 in MondoRescue for branches/3.3/mindi-busybox/coreutils


Ignore:
Timestamp:
May 8, 2025, 5:24:25 PM (6 weeks ago)
Author:
Bruno Cornec
Message:

Remove stime usage

based on commit d3539be8f27b8cbfdfee460fe08299158f08bcd9 Mon Sep 17 00:00:00 2001
From: Alistair Francis <alistair.francis@…>

stime() has been deprecated in glibc 2.31 and replaced with
clock_settime(). Let's replace the stime() function calls with
clock_settime() in preperation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/coreutils/date.c

    r3770 r3910  
    299299
    300300        /* if setting time, set it */
    301         if ((opt & OPT_SET) && stime(&ts.tv_sec) < 0) {
     301        if ((opt & OPT_SET) && clock_settime(CLOCK_REALTIME, &ts) < 0) {
    302302            bb_perror_msg("can't set date");
    303303        }
Note: See TracChangeset for help on using the changeset viewer.