summaryrefslogtreecommitdiffstats
path: root/src/GridText.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/GridText.c')
-rw-r--r--src/GridText.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/GridText.c b/src/GridText.c
index 806a053..419f6ee 100644
--- a/src/GridText.c
+++ b/src/GridText.c
@@ -1,5 +1,5 @@
/*
- * $LynxId: GridText.c,v 1.347 2024/01/15 19:11:55 Gisle.Vanem Exp $
+ * $LynxId: GridText.c,v 1.349 2024/04/11 20:24:32 tom Exp $
*
* Character grid hypertext object
* ===============================
@@ -6002,7 +6002,7 @@ static void HText_trimHightext(HText *text,
int final,
int stop_before)
{
- int cur_line, cur_shift;
+ int cur_line;
TextAnchor *anchor_ptr;
TextAnchor *prev_a = NULL;
HTLine *line_ptr;
@@ -6097,7 +6097,6 @@ static void HText_trimHightext(HText *text,
anchor_ptr->number,
anchor_ptr->extent));
- cur_shift = 0;
/*
* Strip off any spaces or SpecialAttrChars at the beginning,
* if they exist, but only on HYPERTEXT_ANCHORS.
@@ -6108,7 +6107,6 @@ static void HText_trimHightext(HText *text,
IsSpecialAttrChar(ch)) {
anchor_ptr->line_pos++;
anchor_ptr->extent--;
- cur_shift++;
ch = UCH(line_ptr->data[anchor_ptr->line_pos]);
}
}
@@ -7107,7 +7105,7 @@ void HTCheckFnameForCompression(char **fname,
char *fn = *fname;
char *dot = NULL;
char *cp = NULL;
- const char *suffix = "";
+ const char *suffix;
CompressFileType method;
CompressFileType second;
@@ -11127,7 +11125,7 @@ int HText_SubmitForm(FormInfo * submit_item, DocInfo *doc,
char *escaped1 = NULL;
char *escaped2 = NULL;
char *last_textarea_name = NULL;
- const char *name_used = "";
+ const char *name_used;
char *previous_blanks = NULL;
const char *val_used = "";
int anchor_count = 0;
@@ -13167,7 +13165,7 @@ static char *readEditedFile(char *ed_temp)
return ebuf;
}
-static int finish_ExtEditForm(LinkInfo * form_link, TextAnchor *start_anchor,
+static int finish_ExtEditForm(LinkInfo *form_link, TextAnchor *start_anchor,
char *ed_temp,
int orig_cnt)
{
@@ -13401,7 +13399,7 @@ static int finish_ExtEditForm(LinkInfo * form_link, TextAnchor *start_anchor,
*
* --KED 02/01/99
*/
-int HText_EditTextArea(LinkInfo * form_link)
+int HText_EditTextArea(LinkInfo *form_link)
{
char *ed_temp;
FILE *fp;
@@ -13494,7 +13492,7 @@ int HText_EditTextArea(LinkInfo * form_link)
/*
* Similar to HText_EditTextArea, but assume a single-line text field -TD
*/
-void HText_EditTextField(LinkInfo * form_link)
+void HText_EditTextField(LinkInfo *form_link)
{
char *ed_temp;
FILE *fp;
@@ -13556,7 +13554,7 @@ void HText_EditTextField(LinkInfo * form_link)
*
* --KED 02/14/99
*/
-void HText_ExpandTextarea(LinkInfo * form_link, int newlines)
+void HText_ExpandTextarea(LinkInfo *form_link, int newlines)
{
TextAnchor *anchor_ptr;
TextAnchor *end_anchor = NULL;
@@ -13639,7 +13637,7 @@ void HText_ExpandTextarea(LinkInfo * form_link, int newlines)
*
* --KED 02/21/99
*/
-int HText_InsertFile(LinkInfo * form_link)
+int HText_InsertFile(LinkInfo *form_link)
{
struct stat stat_info;
size_t size;