The branch main has been updated by imp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=a0d6f89e692a683fc7f558e9eb8a27d30069e949

commit a0d6f89e692a683fc7f558e9eb8a27d30069e949
Author:     Bram <b...@cbbg.nl>
AuthorDate: 2024-07-26 19:34:08 +0000
Commit:     Warner Losh <i...@freebsd.org>
CommitDate: 2024-09-06 18:34:30 +0000

    lastlogin: Add version information to libxo output
    
    Add version information to libxo output so that
    libxo content consumers can track changes.
    
    Reviewed by: imp, markj
    Pull Request: https://github.com/freebsd/freebsd-src/pull/1350
---
 usr.sbin/lastlogin/lastlogin.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/usr.sbin/lastlogin/lastlogin.c b/usr.sbin/lastlogin/lastlogin.c
index a1dcde3f60bf..3a71693f7576 100644
--- a/usr.sbin/lastlogin/lastlogin.c
+++ b/usr.sbin/lastlogin/lastlogin.c
@@ -48,6 +48,8 @@ __RCSID("$NetBSD: lastlogin.c,v 1.4 1998/02/03 04:45:35 perry 
Exp $");
 
 #include <libxo/xo.h>
 
+#define LASTLOGIN_XO_VERSION "1"
+
        int     main(int, char **);
 static void    output(struct utmpx *);
 static void    usage(void);
@@ -103,6 +105,7 @@ main(int argc, char *argv[])
        argc -= optind;
        argv += optind;
 
+       xo_set_version(LASTLOGIN_XO_VERSION);
        xo_open_container("lastlogin-information");
        xo_open_list("lastlogin");
 

Reply via email to