Remove unused variable

This commit is contained in:
Rene Kita
2021-09-02 11:53:15 +02:00
parent dad5cbe83b
commit 916104b7f2
7 changed files with 8 additions and 22 deletions
+3 -5
View File
@@ -520,10 +520,8 @@ Sprintf(char *fmt, ...)
case SP_PREC:
if (IS_ALPHA(*f)) {
/* conversion char. */
double vd;
int vi;
char *vs;
void *vp;
switch (*f) {
case 'l':
@@ -545,7 +543,7 @@ Sprintf(char *fmt, ...)
case 'e':
case 'G':
case 'E':
vd = va_arg(ap, double);
va_arg(ap, double);
len += (p > 0) ? p : 15;
break;
case 'c':
@@ -558,11 +556,11 @@ Sprintf(char *fmt, ...)
len += (p > vi) ? p : vi;
break;
case 'p':
vp = va_arg(ap, void *);
va_arg(ap, void *);
len += 10;
break;
case 'n':
vp = va_arg(ap, void *);
va_arg(ap, void *);
break;
}
status = SP_NORMAL;
+1 -3
View File
@@ -3803,7 +3803,7 @@ process_button(struct parsed_tag *tag)
{
Str tmp = NULL;
char *p, *q, *r, *qq = "";
int qlen, v;
int v;
if (cur_form_id < 0) {
char *s = "<form_int method=internal action=none>";
@@ -3847,7 +3847,6 @@ process_button(struct parsed_tag *tag)
}
if (q) {
qq = html_quote(q);
qlen = strlen(q);
}
/* Strcat_charp(tmp, "<pre_int>"); */
@@ -7601,7 +7600,6 @@ loadGopherSearch0(URLFile *uf, ParsedURL *pu)
{
Str tmp;
char *volatile p, *volatile q;
MySignalHandler(*volatile prevtrap) (SIGNAL_ARG) = NULL;
#ifdef USE_M17N
wc_ces doc_charset = DocumentCharset;
#endif
+1 -2
View File
@@ -551,13 +551,12 @@ loadImage(Buffer *buf, int flag)
}
#else /* !DONT_CALL_GC_AFTER_FORK */
if ((cache->pid = fork()) == 0) {
Buffer *b;
/*
* setup_child(TRUE, 0, -1);
*/
setup_child(FALSE, 0, -1);
image_source = cache->file;
b = loadGeneralFile(cache->url, cache->current, NULL, 0, NULL);
loadGeneralFile(cache->url, cache->current, NULL, 0, NULL);
/* TODO make sure removing this didn't break anything
if (!b || !b->real_type || strncasecmp(b->real_type, "image/", 6))
unlink(cache->file);
+1 -2
View File
@@ -418,7 +418,6 @@ ssl_check_cert_ident(X509 * x, char *hostname)
if (alt) {
int n;
GENERAL_NAME *gn;
X509V3_EXT_METHOD *method;
Str seen_dnsname = NULL;
n = sk_GENERAL_NAME_num(alt);
@@ -459,7 +458,7 @@ ssl_check_cert_ident(X509 * x, char *hostname)
break;
}
}
method = X509V3_EXT_get(ex);
X509V3_EXT_get(ex);
sk_GENERAL_NAME_free(alt);
if (i < n) /* Found a match */
match_ident = TRUE;
-6
View File
@@ -1813,15 +1813,11 @@ static int
dispincsrch(int ch, Str buf, Lineprop *prop)
{
static Buffer sbuf;
static Line *currentLine;
static int pos;
char *str;
int do_next_search = FALSE;
if (ch == 0 && buf == NULL) {
SAVE_BUFPOSITION(&sbuf); /* search starting point */
currentLine = sbuf.currentLine;
pos = sbuf.pos;
return -1;
}
@@ -1870,8 +1866,6 @@ dispincsrch(int ch, Str buf, Lineprop *prop)
arrangeCursor(Currentbuf);
srchcore(str, searchRoutine);
arrangeCursor(Currentbuf);
currentLine = Currentbuf->currentLine;
pos = Currentbuf->pos;
}
displayBuffer(Currentbuf, B_FORCE_REDRAW);
clear_mark(Currentbuf->currentLine);
+1 -2
View File
@@ -1100,7 +1100,7 @@ process_mMouse(int btn, int x, int y)
{
Menu *menu;
int mselect, i;
static int press_btn = MOUSE_BTN_RESET, press_x, press_y;
static int press_btn = MOUSE_BTN_RESET, press_y;
char c = ' ';
menu = CurrentMenu;
@@ -1169,7 +1169,6 @@ process_mMouse(int btn, int x, int y)
if (btn != MOUSE_BTN4_DOWN_RXVT || press_btn == MOUSE_BTN_RESET) {
press_btn = btn;
press_x = x;
press_y = y;
}
else {
+1 -2
View File
@@ -235,7 +235,6 @@ InputStream
openNewsStream(ParsedURL *pu)
{
char *host, *mode, *group, *p;
Str tmp;
int port, status;
if (pu->file == NULL || *pu->file == '\0')
@@ -262,7 +261,7 @@ openNewsStream(ParsedURL *pu)
mode = NULL;
if (current_news.host) {
if (!strcmp(current_news.host, host) && current_news.port == port) {
tmp = news_command(&current_news, "MODE", mode ? mode : "READER",
news_command(&current_news, "MODE", mode ? mode : "READER",
&status);
if (status != 200 && status != 201)
news_close(&current_news);