const poisoning.
This commit is contained in:
parent
dfeb862ca8
commit
c77b5a980c
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: salloc.c,v 1.3 1997/06/17 18:56:32 christos Exp $ */
|
/* $NetBSD: salloc.c,v 1.4 1998/07/27 01:07:01 mycroft Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1991 Carnegie Mellon University
|
* Copyright (c) 1991 Carnegie Mellon University
|
||||||
@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
|
|
||||||
char *salloc(p)
|
char *salloc(p)
|
||||||
char *p;
|
const char *p;
|
||||||
{
|
{
|
||||||
register char *q;
|
register char *q;
|
||||||
register int l;
|
register int l;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: supcmain.c,v 1.9 1997/11/13 01:05:30 thorpej Exp $ */
|
/* $NetBSD: supcmain.c,v 1.10 1998/07/27 01:07:01 mycroft Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1992 Carnegie Mellon University
|
* Copyright (c) 1992 Carnegie Mellon University
|
||||||
@ -573,6 +573,7 @@ int argc;
|
|||||||
char **argv;
|
char **argv;
|
||||||
{
|
{
|
||||||
char buf[STRINGLENGTH],*p;
|
char buf[STRINGLENGTH],*p;
|
||||||
|
const char *u;
|
||||||
char username[STRINGLENGTH];
|
char username[STRINGLENGTH];
|
||||||
register char *supfname,*arg;
|
register char *supfname,*arg;
|
||||||
register COLLECTION *c,*lastC;
|
register COLLECTION *c,*lastC;
|
||||||
@ -635,9 +636,9 @@ char **argv;
|
|||||||
--argc;
|
--argc;
|
||||||
argv++;
|
argv++;
|
||||||
}
|
}
|
||||||
if ((p = (char *)getlogin()) ||
|
if ((u = getlogin()) ||
|
||||||
((pw = getpwuid ((int)getuid())) && (p = pw->pw_name)))
|
((pw = getpwuid ((int)getuid())) && (u = pw->pw_name)))
|
||||||
(void) strcpy (username,p);
|
(void) strcpy (username, p);
|
||||||
else
|
else
|
||||||
*username = '\0';
|
*username = '\0';
|
||||||
if (*supfname) {
|
if (*supfname) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: supextern.h,v 1.7 1998/07/26 15:52:46 mycroft Exp $ */
|
/* $NetBSD: supextern.h,v 1.8 1998/07/27 01:07:01 mycroft Exp $ */
|
||||||
|
|
||||||
struct stat;
|
struct stat;
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ int runio __P((char *const[], const char *, const char *, const char *));
|
|||||||
int runiofd __P((char *const[], const int, const int, const int));
|
int runiofd __P((char *const[], const int, const int, const int));
|
||||||
|
|
||||||
/* salloc.c */
|
/* salloc.c */
|
||||||
char *salloc __P((char *));
|
char *salloc __P((const char *));
|
||||||
|
|
||||||
/* scan.c */
|
/* scan.c */
|
||||||
int getrelease __P((char *));
|
int getrelease __P((char *));
|
||||||
|
Loading…
Reference in New Issue
Block a user