Skip to content

Commit

Permalink
Add const to suppress compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
djmdjm committed Jan 26, 2000
1 parent 7d7c60d commit 3e955e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions auth-pam.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "xmalloc.h"
#include "servconf.h"

RCSID("$Id: auth-pam.c,v 1.1 1999/12/30 04:11:25 damien Exp $");
RCSID("$Id: auth-pam.c,v 1.2 2000/01/26 23:55:38 damien Exp $");

/* Callbacks */
static int pamconv(int num_msg, const struct pam_message **msg,
Expand Down Expand Up @@ -174,7 +174,7 @@ int do_pam_account(char *username, char *remote_user)
}

/* Do PAM-specific session initialisation */
void do_pam_session(char *username, char *ttyname)
void do_pam_session(char *username, const char *ttyname)
{
int pam_retval;

Expand Down
2 changes: 1 addition & 1 deletion auth-pam.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ void finish_pam(void);
int auth_pam_password(struct passwd *pw, const char *password);
char **fetch_pam_environment(void);
int do_pam_account(char *username, char *remote_user);
void do_pam_session(char *username, char *ttyname);
void do_pam_session(char *username, const char *ttyname);
void do_pam_setcred();
void print_pam_messages(void);

Expand Down

0 comments on commit 3e955e7

Please sign in to comment.