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
09334a0f8c
commit
d90d802c7a
@ -36,7 +36,6 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
|
|
||||||
extern int sysarch(int, char *);
|
|
||||||
static void usage ();
|
static void usage ();
|
||||||
|
|
||||||
struct parms {
|
struct parms {
|
||||||
@ -49,7 +48,7 @@ alpha_setuac(u_int64_t uac)
|
|||||||
struct parms p;
|
struct parms p;
|
||||||
|
|
||||||
p.uac = uac;
|
p.uac = uac;
|
||||||
return (sysarch(ALPHA_SET_UAC, (char *)&p));
|
return (sysarch(ALPHA_SET_UAC, &p));
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -58,7 +57,7 @@ alpha_getuac(u_int64_t *uac)
|
|||||||
struct parms p;
|
struct parms p;
|
||||||
int error;
|
int error;
|
||||||
|
|
||||||
error = sysarch(ALPHA_GET_UAC, (char *)&p);
|
error = sysarch(ALPHA_GET_UAC, &p);
|
||||||
*uac = p.uac;
|
*uac = p.uac;
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user