mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
Whack 28 unused variables.
This commit is contained in:
parent
51260bb27f
commit
6d7bd75a4e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111082
@ -251,7 +251,6 @@ __elf_fdnlist(fd, list)
|
|||||||
Elf_Ehdr ehdr;
|
Elf_Ehdr ehdr;
|
||||||
char *strtab = NULL;
|
char *strtab = NULL;
|
||||||
Elf_Shdr *shdr = NULL;
|
Elf_Shdr *shdr = NULL;
|
||||||
Elf_Shdr *sh;
|
|
||||||
Elf_Word shdr_size;
|
Elf_Word shdr_size;
|
||||||
void *base;
|
void *base;
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
@ -50,7 +50,7 @@ _UTF8_init(_RuneLocale *rl)
|
|||||||
rune_t
|
rune_t
|
||||||
_UTF8_sgetrune(const char *string, size_t n, const char **result)
|
_UTF8_sgetrune(const char *string, size_t n, const char **result)
|
||||||
{
|
{
|
||||||
int ch, len, mask, siglen;
|
int ch, len, mask;
|
||||||
rune_t lbound, wch;
|
rune_t lbound, wch;
|
||||||
|
|
||||||
if (n < 1) {
|
if (n < 1) {
|
||||||
|
@ -243,7 +243,7 @@ ns_name_unpack(const u_char *msg, const u_char *eom, const u_char *src,
|
|||||||
{
|
{
|
||||||
const u_char *srcp, *dstlim;
|
const u_char *srcp, *dstlim;
|
||||||
u_char *dstp;
|
u_char *dstp;
|
||||||
int n, c, len, checked;
|
int n, len, checked;
|
||||||
|
|
||||||
len = -1;
|
len = -1;
|
||||||
checked = 0;
|
checked = 0;
|
||||||
|
@ -43,7 +43,7 @@ int
|
|||||||
ns_format_ttl(u_long src, char *dst, size_t dstlen) {
|
ns_format_ttl(u_long src, char *dst, size_t dstlen) {
|
||||||
char *odst = dst;
|
char *odst = dst;
|
||||||
int secs, mins, hours, days, weeks, x;
|
int secs, mins, hours, days, weeks, x;
|
||||||
char tmp[50], *p;
|
char *p;
|
||||||
|
|
||||||
secs = src % 60; src /= 60;
|
secs = src % 60; src /= 60;
|
||||||
mins = src % 60; src /= 60;
|
mins = src % 60; src /= 60;
|
||||||
|
@ -344,7 +344,7 @@ int
|
|||||||
rresvport_af(alport, family)
|
rresvport_af(alport, family)
|
||||||
int *alport, family;
|
int *alport, family;
|
||||||
{
|
{
|
||||||
int i, s, len, err;
|
int s;
|
||||||
struct sockaddr_storage ss;
|
struct sockaddr_storage ss;
|
||||||
u_short *sport;
|
u_short *sport;
|
||||||
|
|
||||||
@ -609,7 +609,6 @@ __ivaliduser_sa(hostf, raddr, salen, luser, ruser)
|
|||||||
char hname[MAXHOSTNAMELEN];
|
char hname[MAXHOSTNAMELEN];
|
||||||
/* Presumed guilty until proven innocent. */
|
/* Presumed guilty until proven innocent. */
|
||||||
int userok = 0, hostok = 0;
|
int userok = 0, hostok = 0;
|
||||||
int h_error;
|
|
||||||
#ifdef YP
|
#ifdef YP
|
||||||
char *ypdomain;
|
char *ypdomain;
|
||||||
|
|
||||||
|
@ -205,7 +205,7 @@ fp_query(const u_char *msg, FILE *file) {
|
|||||||
void
|
void
|
||||||
fp_nquery(const u_char *msg, int len, FILE *file) {
|
fp_nquery(const u_char *msg, int len, FILE *file) {
|
||||||
ns_msg handle;
|
ns_msg handle;
|
||||||
int n, qdcount, ancount, nscount, arcount;
|
int qdcount, ancount, nscount, arcount;
|
||||||
u_int opcode, rcode, id;
|
u_int opcode, rcode, id;
|
||||||
|
|
||||||
if ((_res.options & RES_INIT) == 0 && res_init() == -1)
|
if ((_res.options & RES_INIT) == 0 && res_init() == -1)
|
||||||
|
@ -62,9 +62,9 @@ int
|
|||||||
res_mkupdate(ns_updrec *rrecp_in, u_char *buf, int buflen) {
|
res_mkupdate(ns_updrec *rrecp_in, u_char *buf, int buflen) {
|
||||||
ns_updrec *rrecp_start = rrecp_in;
|
ns_updrec *rrecp_start = rrecp_in;
|
||||||
HEADER *hp;
|
HEADER *hp;
|
||||||
u_char c, *cp, *cp1, *sp1, *sp2, *startp, *endp;
|
u_char *cp, *sp1, *sp2, *startp, *endp;
|
||||||
int n, i, j, found, soanum, multiline;
|
int n, i, soanum, multiline;
|
||||||
ns_updrec *rrecp, *tmprrecp, *recptr = NULL;
|
ns_updrec *rrecp;
|
||||||
struct in_addr ina;
|
struct in_addr ina;
|
||||||
char buf2[MAXDNAME];
|
char buf2[MAXDNAME];
|
||||||
int section, numrrs = 0, counts[ns_s_max];
|
int section, numrrs = 0, counts[ns_s_max];
|
||||||
@ -348,7 +348,6 @@ static int
|
|||||||
getnum_str(u_char **startpp, u_char *endp) {
|
getnum_str(u_char **startpp, u_char *endp) {
|
||||||
int c, n;
|
int c, n;
|
||||||
int seendigit = 0;
|
int seendigit = 0;
|
||||||
int seendecimal = 0;
|
|
||||||
int m = 0;
|
int m = 0;
|
||||||
|
|
||||||
for (n = 0; *startpp <= endp; ) {
|
for (n = 0; *startpp <= endp; ) {
|
||||||
|
@ -97,9 +97,7 @@ mac_init_internal(void)
|
|||||||
return (0);
|
return (0);
|
||||||
|
|
||||||
while (fgets(line, LINE_MAX, file)) {
|
while (fgets(line, LINE_MAX, file)) {
|
||||||
char *argv[ARG_MAX];
|
char *arg, *parse, *statement;
|
||||||
char *arg, *parse, *statement, *policyname, *modulename;
|
|
||||||
int argc;
|
|
||||||
|
|
||||||
if (line[strlen(line)-1] == '\n')
|
if (line[strlen(line)-1] == '\n')
|
||||||
line[strlen(line)-1] = '\0';
|
line[strlen(line)-1] = '\0';
|
||||||
@ -206,7 +204,6 @@ mac_reload(void)
|
|||||||
int
|
int
|
||||||
mac_free(struct mac *mac)
|
mac_free(struct mac *mac)
|
||||||
{
|
{
|
||||||
int error;
|
|
||||||
|
|
||||||
if (mac->m_string != NULL)
|
if (mac->m_string != NULL)
|
||||||
free(mac->m_string);
|
free(mac->m_string);
|
||||||
@ -218,9 +215,6 @@ mac_free(struct mac *mac)
|
|||||||
int
|
int
|
||||||
mac_from_text(struct mac **mac, const char *text)
|
mac_from_text(struct mac **mac, const char *text)
|
||||||
{
|
{
|
||||||
struct mac *temp;
|
|
||||||
char *dup, *element, *search;
|
|
||||||
int count, error;
|
|
||||||
|
|
||||||
*mac = (struct mac *) malloc(sizeof(**mac));
|
*mac = (struct mac *) malloc(sizeof(**mac));
|
||||||
if (*mac == NULL)
|
if (*mac == NULL)
|
||||||
@ -251,7 +245,6 @@ mac_to_text(struct mac *mac, char **text)
|
|||||||
int
|
int
|
||||||
mac_prepare(struct mac **mac, char *elements)
|
mac_prepare(struct mac **mac, char *elements)
|
||||||
{
|
{
|
||||||
struct mac *temp;
|
|
||||||
|
|
||||||
if (strlen(elements) >= MAC_MAX_LABEL_BUF_LEN)
|
if (strlen(elements) >= MAC_MAX_LABEL_BUF_LEN)
|
||||||
return (EINVAL);
|
return (EINVAL);
|
||||||
|
Loading…
Reference in New Issue
Block a user