Skip to content

Commit 20dcd29

Browse files
committed
pppd/plugins: Add const qualifiers to eliminate warnings
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
1 parent 5c40f10 commit 20dcd29

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pppd/plugins/radius/radrealms.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ lookup_realm(char const *user,
4646
SERVER **authserver,
4747
SERVER **acctserver)
4848
{
49-
char *realm;
49+
const char *realm;
5050
FILE *fd;
5151
SERVER *accts, *auths, *s;
5252
char buffer[512], *p;

pppd/plugins/winbind.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ size_t strhex_to_str(unsigned char *p, size_t len, const char *strhex)
168168
size_t num_chars = 0;
169169
unsigned char lonybble, hinybble;
170170
const char *hexchars = "0123456789ABCDEF";
171-
char *p1 = NULL, *p2 = NULL;
171+
const char *p1 = NULL, *p2 = NULL;
172172

173173
for (i = 0; i < len && strhex[i] != 0; i++) {
174174
if (strncmp(hexchars, "0x", 2) == 0) {

0 commit comments

Comments
 (0)