mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-22 15:47:37 +00:00
Fix some warnings by making things const, adding missing headers,
removing some unused variables and making a variable unsigned. MFC after: 3 weeks
This commit is contained in:
parent
180200f5f4
commit
bc7e443092
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169342
@ -29,7 +29,8 @@ void login_fbtab(char *, uid_t, gid_t);
|
||||
|
||||
#ifdef USE_BSM_AUDIT
|
||||
void au_login_success(void);
|
||||
void au_login_fail(char *errmsg, int na);
|
||||
void au_login_fail(const char *errmsg, int na);
|
||||
void audit_logout(void);
|
||||
#endif
|
||||
|
||||
extern char **environ;
|
||||
|
@ -43,6 +43,8 @@ __FBSDID("$FreeBSD$");
|
||||
#include <errno.h>
|
||||
#include <pwd.h>
|
||||
#include <stdio.h>
|
||||
#include <strings.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "login.h"
|
||||
|
||||
@ -109,7 +111,7 @@ au_login_success(void)
|
||||
* login attempts: header, subject, text, return.
|
||||
*/
|
||||
void
|
||||
au_login_fail(char *errmsg, int na)
|
||||
au_login_fail(const char *errmsg, int na)
|
||||
{
|
||||
token_t *tok;
|
||||
int aufd;
|
||||
@ -170,8 +172,6 @@ audit_logout(void)
|
||||
{
|
||||
token_t *tok;
|
||||
int aufd;
|
||||
au_mask_t aumask;
|
||||
auditinfo_t auinfo;
|
||||
uid_t uid = pwd->pw_uid;
|
||||
gid_t gid = pwd->pw_gid;
|
||||
pid_t pid = getpid();
|
||||
|
@ -133,7 +133,7 @@ gid_t gid;
|
||||
{
|
||||
glob_t gl;
|
||||
char *path;
|
||||
int i;
|
||||
unsigned int i;
|
||||
|
||||
if (glob(pattern, GLOB_NOSORT, NULL, &gl) != 0)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user