Compilers will complain the usage of obsolescent variable declarations.
Also it will fix the build problem with sparc64. Submitted by: ed@
This commit is contained in:
parent
b7551bceeb
commit
006a388bb6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285992
@ -47,9 +47,9 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
const struct ypalias {
|
static const struct ypalias {
|
||||||
char *alias, *name;
|
char *alias, *name;
|
||||||
} static ypaliases[] = {
|
} ypaliases[] = {
|
||||||
{ "passwd", "passwd.byname" },
|
{ "passwd", "passwd.byname" },
|
||||||
{ "master.passwd", "master.passwd.byname" },
|
{ "master.passwd", "master.passwd.byname" },
|
||||||
{ "shadow", "shadow.byname" },
|
{ "shadow", "shadow.byname" },
|
||||||
|
@ -47,9 +47,9 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
const struct ypalias {
|
static const struct ypalias {
|
||||||
char *alias, *name;
|
char *alias, *name;
|
||||||
} static ypaliases[] = {
|
} ypaliases[] = {
|
||||||
{ "passwd", "passwd.byname" },
|
{ "passwd", "passwd.byname" },
|
||||||
{ "master.passwd", "master.passwd.byname" },
|
{ "master.passwd", "master.passwd.byname" },
|
||||||
{ "shadow", "shadow.byname" },
|
{ "shadow", "shadow.byname" },
|
||||||
|
@ -59,9 +59,9 @@ __FBSDID("$FreeBSD$");
|
|||||||
|
|
||||||
extern bool_t xdr_domainname();
|
extern bool_t xdr_domainname();
|
||||||
|
|
||||||
const struct ypalias {
|
static const struct ypalias {
|
||||||
char *alias, *name;
|
char *alias, *name;
|
||||||
} static ypaliases[] = {
|
} ypaliases[] = {
|
||||||
{ "passwd", "passwd.byname" },
|
{ "passwd", "passwd.byname" },
|
||||||
{ "master.passwd", "master.passwd.byname" },
|
{ "master.passwd", "master.passwd.byname" },
|
||||||
{ "shadow", "shadow.byname" },
|
{ "shadow", "shadow.byname" },
|
||||||
|
Loading…
Reference in New Issue
Block a user