}
-int commonio_close (struct commonio_db *db, bool process_selinux)
+int
+commonio_close(struct commonio_db *db, MAYBE_UNUSED bool process_selinux)
{
bool errors = false;
char buf[1024];
* Return 0 on success, -1 on error.
*/
static int
-copy_special(const struct path_info *src, const struct path_info *dst,
- bool reset_selinux,
+copy_special(MAYBE_UNUSED const struct path_info *src, const struct path_info *dst,
+ MAYBE_UNUSED bool reset_selinux,
const struct stat *statp, const struct timespec mt[],
uid_t old_uid, uid_t new_uid,
gid_t old_gid, gid_t new_gid)
* Return 0 on success, -1 on error.
*/
static int copy_file (const struct path_info *src, const struct path_info *dst,
- bool reset_selinux,
+ MAYBE_UNUSED bool reset_selinux,
const struct stat *statp, const struct timespec mt[],
uid_t old_uid, uid_t new_uid,
gid_t old_gid, gid_t new_gid)
#include "alloc/calloc.h"
#include "alloc/malloc.h"
#include "atoi/a2i.h"
+#include "attr.h"
#include "idmapping.h"
#include "prototypes.h"
#include "shadowlog.h"
* If this is wanted: use file capabilities!
*/
void write_mapping(int proc_dir_fd, int ranges, const struct map_range *mappings,
- const char *map_file, uid_t ruid)
+ const char *map_file, MAYBE_UNUSED uid_t ruid)
{
int idx;
const struct map_range *mapping;
#include <sys/types.h>
#include <time.h>
+#include "attr.h"
#include "defines.h"
#include "prototypes.h"
#include "string/memset/memzero.h"
struct lastlog *ll,
const struct passwd *pw,
/*@unique@*/const char *line,
- /*@unique@*/const char *host)
+ MAYBE_UNUSED /*@unique@*/const char *host)
{
int fd;
off_t offset;
#include <pwd.h>
#include "alloc/malloc.h"
+#include "attr.h"
#include "defines.h"
#include "groupio.h"
#include "prototypes.h"
}
-static void check_perms (bool process_selinux)
+static void
+check_perms(MAYBE_UNUSED bool process_selinux)
{
if (!list) {
#ifdef USE_PAM
#include "alloc/reallocf.h"
#include "atoi/a2i.h"
#include "atoi/getnum.h"
+#include "attr.h"
#ifdef ACCT_TOOLS_SETUID
#ifdef USE_PAM
#include "pam_defs.h"
/*
* add_passwd - add or update the encrypted password
*/
-static int add_passwd (struct passwd *pwd, const char *password)
+static int
+add_passwd(struct passwd *pwd, MAYBE_UNUSED const char *password)
{
const struct spwd *sp;
struct spwd spent;
*
* It will not return if the user is not allowed.
*/
-static void check_perms(const struct option_flags *flags)
+static void
+check_perms(MAYBE_UNUSED const struct option_flags *flags)
{
#ifdef ACCT_TOOLS_SETUID
#ifdef USE_PAM