From 739c65c54cb0e957df5e9b76f93fb02554e5cac3 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 4 May 2022 23:52:30 +0100 Subject: moved everything to new file formatting --- extra/procps-ng/use_utmpx.patch | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 extra/procps-ng/use_utmpx.patch (limited to 'extra/procps-ng/use_utmpx.patch') diff --git a/extra/procps-ng/use_utmpx.patch b/extra/procps-ng/use_utmpx.patch deleted file mode 100644 index ea9e9e2..0000000 --- a/extra/procps-ng/use_utmpx.patch +++ /dev/null @@ -1,38 +0,0 @@ -diff -uNr procps-3.3.17.orig/proc/whattime.c procps-3.3.17/proc/whattime.c ---- procps-3.3.17.orig/proc/whattime.c 2021-02-09 04:11:25.000000000 -0600 -+++ procps-3.3.17/proc/whattime.c 2021-03-19 13:40:17.910049032 -0500 -@@ -33,7 +33,7 @@ - #include - #include - #include --#include -+#include - #include - #include "whattime.h" - #include "sysinfo.h" -@@ -42,7 +42,7 @@ - static double av[3]; - - char *sprint_uptime(int human_readable) { -- struct utmp *utmpstruct; -+ struct utmpx *utmpstruct; - int upminutes, uphours, updays, upweeks, upyears, updecades; - int pos; - int comma; -@@ -98,13 +98,13 @@ - /* count the number of users */ - - numuser = 0; -- setutent(); -- while ((utmpstruct = getutent())) { -+ setutxent(); -+ while ((utmpstruct = getutxent())) { - if ((utmpstruct->ut_type == USER_PROCESS) && - (utmpstruct->ut_name[0] != '\0')) - numuser++; - } -- endutent(); -+ endutxent(); - - pos += sprintf(buf + pos, "%2d user%s, ", numuser, numuser == 1 ? "" : "s"); - -- cgit v1.2.1