o Remove __P
o Use proper prototypes o remove register
This commit is contained in:
parent
0b3356e19e
commit
32ce1b8d9e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90303
@ -54,10 +54,10 @@ static const char rcsid[] =
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
static void get __P((char *, int));
|
||||
static void get(char *, int);
|
||||
|
||||
int
|
||||
main()
|
||||
main(int argc __unused, char *argv[] __unused)
|
||||
{
|
||||
int len;
|
||||
char *r, key[9], salt[3];
|
||||
@ -71,11 +71,9 @@ main()
|
||||
}
|
||||
|
||||
static void
|
||||
get(bp, len)
|
||||
char *bp;
|
||||
register int len;
|
||||
get(char *bp, int len)
|
||||
{
|
||||
register int nr;
|
||||
int nr;
|
||||
|
||||
bp[len] = '\0';
|
||||
if ((nr = read(STDIN_FILENO, bp, len)) == len)
|
||||
|
Loading…
Reference in New Issue
Block a user