OpenAFS Master Repository branch, master, updated. openafs-devel-1_9_1-398-ga7f7724

Gerrit Code Review gerrit@openafs.org
Fri, 28 Jun 2024 09:28:30 -0400


The following commit has been merged in the master branch:
commit a7f77245b75d6813ea8ccf5ae72c7036b45e53c5
Author: Andrew Deason <adeason@sinenomine.net>
Date:   Mon May 8 16:25:15 2023 -0500

    dumpscan: Include time.h
    
    Various parts of dumpscan use ctime(), time(), etc, but don't include
    time.h. This causes errors on AIX when using the clang-based xlc 17.1,
    such as:
    
        .../src/tools/dumpscan/parsevol.c:286:35: error: call to undeclared function 'ctime'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                    printf("%s%s", field->label, ctime(&when));
                                                 ^
    
    Include time.h in these files, so we have declarations for these
    functions.
    
    Change-Id: I0247a55952640585ff3b27d2b0e47e09dea531a0
    Reviewed-on: https://gerrit.openafs.org/15435
    Reviewed-by: Ben Huntsman <ben@huntsmans.net>
    Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
    Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>

 src/tools/dumpscan/backuphdr.c  | 1 +
 src/tools/dumpscan/dump.c       | 2 ++
 src/tools/dumpscan/dumptool.c   | 1 +
 src/tools/dumpscan/parsevnode.c | 1 +
 src/tools/dumpscan/parsevol.c   | 2 ++
 src/tools/dumpscan/repair.c     | 1 +
 6 files changed, 8 insertions(+)

-- 
OpenAFS Master Repository