mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-19 15:33:56 +00:00
Remove (another) now redundant and now conflicting declaration of
sysarch(2). Remove now unnecessary casts. grep(1) says this is the last sysarch declaration in the src tree. Reported by: alpha tinderbox
This commit is contained in:
parent
8096052fae
commit
74b4aad765
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124411
@ -36,7 +36,6 @@
|
||||
#include <unistd.h>
|
||||
#include <err.h>
|
||||
|
||||
extern int sysarch(int, char *);
|
||||
static void usage ();
|
||||
|
||||
struct parms {
|
||||
@ -49,7 +48,7 @@ alpha_setuac(u_int64_t uac)
|
||||
struct parms p;
|
||||
|
||||
p.uac = uac;
|
||||
return (sysarch(ALPHA_SET_UAC, (char *)&p));
|
||||
return (sysarch(ALPHA_SET_UAC, &p));
|
||||
}
|
||||
|
||||
int
|
||||
@ -58,7 +57,7 @@ alpha_getuac(u_int64_t *uac)
|
||||
struct parms p;
|
||||
int error;
|
||||
|
||||
error = sysarch(ALPHA_GET_UAC, (char *)&p);
|
||||
error = sysarch(ALPHA_GET_UAC, &p);
|
||||
*uac = p.uac;
|
||||
return (error);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user