mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-02 17:08:56 +00:00
Someone cut and pasted a bunch of stuff here so lots of
indents were spaces when they should have been tabs, screwing up diffs and patches.. Whitespace commit as my first SVN commit. (yay) MFC after: 1 week
This commit is contained in:
parent
2137b017d7
commit
9dcc73ed79
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180039
@ -157,7 +157,7 @@ oquota(td, uap)
|
||||
#endif
|
||||
#ifndef _SYS_SYSPROTO_H_
|
||||
struct uname_args {
|
||||
struct utsname *name;
|
||||
struct utsname *name;
|
||||
};
|
||||
#endif
|
||||
/* ARGSUSED */
|
||||
@ -235,15 +235,15 @@ done2:
|
||||
|
||||
#ifndef _SYS_SYSPROTO_H_
|
||||
struct getdomainname_args {
|
||||
char *domainname;
|
||||
int len;
|
||||
char *domainname;
|
||||
int len;
|
||||
};
|
||||
#endif
|
||||
/* ARGSUSED */
|
||||
int
|
||||
getdomainname(td, uap)
|
||||
struct thread *td;
|
||||
struct getdomainname_args *uap;
|
||||
struct thread *td;
|
||||
struct getdomainname_args *uap;
|
||||
{
|
||||
int domainnamelen;
|
||||
int error;
|
||||
@ -259,30 +259,30 @@ getdomainname(td, uap)
|
||||
|
||||
#ifndef _SYS_SYSPROTO_H_
|
||||
struct setdomainname_args {
|
||||
char *domainname;
|
||||
int len;
|
||||
char *domainname;
|
||||
int len;
|
||||
};
|
||||
#endif
|
||||
/* ARGSUSED */
|
||||
int
|
||||
setdomainname(td, uap)
|
||||
struct thread *td;
|
||||
struct setdomainname_args *uap;
|
||||
struct thread *td;
|
||||
struct setdomainname_args *uap;
|
||||
{
|
||||
int error, domainnamelen;
|
||||
int error, domainnamelen;
|
||||
|
||||
error = priv_check(td, PRIV_SETDOMAINNAME);
|
||||
if (error)
|
||||
return (error);
|
||||
mtx_lock(&Giant);
|
||||
if ((u_int)uap->len > sizeof (domainname) - 1) {
|
||||
if ((u_int)uap->len > sizeof (domainname) - 1) {
|
||||
error = EINVAL;
|
||||
goto done2;
|
||||
}
|
||||
domainnamelen = uap->len;
|
||||
error = copyin(uap->domainname, domainname, uap->len);
|
||||
domainname[domainnamelen] = 0;
|
||||
domainnamelen = uap->len;
|
||||
error = copyin(uap->domainname, domainname, uap->len);
|
||||
domainname[domainnamelen] = 0;
|
||||
done2:
|
||||
mtx_unlock(&Giant);
|
||||
return (error);
|
||||
return (error);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user