Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Rotkraut:Attic
pam_abl
compiler-warnings.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File compiler-warnings.patch of Package pam_abl
--- src/pam_abl.h.orig 2010-01-12 00:24:31.000000000 +0100 +++ src/pam_abl.h 2010-03-09 14:46:32.000000000 +0100 @@ -131,6 +131,7 @@ void log_pam_error(const abl_args *args, int err, const char *what); #endif void log_sys_error(int err, const char *what); +void log_db_error(int err, const char *what); void log_info(const char *format, ...); void log_warning(const abl_args *args, const char *format, ...); void log_debug(const abl_args *args, const char *format, ...); @@ -141,6 +142,7 @@ int config_parse_args(pam_handle_t *pamh, int argc, const char **argv, abl_args *args); int config_parse_file(const char *name, abl_args *args); void config_free(abl_args *args); +void dump_args(const abl_args *args); /* functions from rule.c */ @@ -155,6 +157,7 @@ /* functions from common.c */ void die(const char *msg, ...); +void make_key(DBT *dbt, const char *key); int check(const abl_args *args, abl_info *info, time_t tm); int check_user(const abl_args *args, abl_info *info, time_t tm); int check_host(const abl_args *args, abl_info *info, time_t tm); --- src/common.c.orig 2010-01-12 00:24:31.000000000 +0100 +++ src/common.c 2010-03-09 14:33:44.000000000 +0100 @@ -109,7 +109,6 @@ int update_status(const abl_args *args, abl_info *info) { DB *db; DBT key, data; - DBC *dbc; int err = 0; err = dbopen(args, info->dbfile, DB_STATE, &db); @@ -223,7 +222,6 @@ return 1; } if (NULL != args->host_db) { - int err; info->subject = HOST; info->dbfile = args->host_db; info->rule = args->host_rule; @@ -238,6 +236,7 @@ log_warning(args, "check_host: No host database found in config."); return 1; } + return 1; /* avoid warning: control reaches end of non-void function */ } int check_user(const abl_args *args, abl_info *info, time_t tm) { @@ -258,6 +257,7 @@ log_warning(args, "check_user: No host database found in config."); return 1; } + return 1; /* avoid warning: control reaches end of non-void function */ } /*Yes, this takes args and then something that is in args.... --- src/tools/pam_abl.c.orig 2010-01-14 05:28:32.000000000 +0100 +++ src/tools/pam_abl.c 2010-03-09 15:23:11.000000000 +0100 @@ -27,7 +27,6 @@ static int help = 0; static int relative = 0; static int verbose = 0; -static int names = 0; const char *users[MAXNAMES]; const char *hosts[MAXNAMES]; int command=SHOW,num_users=0, num_hosts=0; @@ -300,7 +299,7 @@ dopurge_fail: if (cursor != NULL) #if DB_VERSION_MINOR <= 5 - cursor->c_close; + cursor->c_close(cursor); #else cursor->close(cursor); #endif @@ -443,8 +442,7 @@ } static int fail(const abl_args *args, const char *dbfile, const char **prohibitions, int count, int max_age) { - int n, err, add = 0; - int wild = 0; + int n, err = 0, add = 0; int *done; time_t tm = time(NULL); @@ -494,20 +492,17 @@ } /* Cleanup */ -fail: free(done); return err; } int main(int argc, char **argv) { - int argn, err, n, c, rv; - int digit_optind = 0; + int err, n, c; char *conf = NULL, *service = "none"; abl_args args; while (1) { - int this_option_optind = optind ? optind : 1; int option_index = 0; static struct option long_options[] = { {"help", 0, &help, 1 },
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor