1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
|
Description: address -Werror=implicit-int errors with GCC-14
Author: tony mancill <tmancill@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1075133
--- a/display.c
+++ b/display.c
@@ -34,6 +34,7 @@
*/
void
dgotoxy(x,y)
+int x, y;
{
if (y == -1)
y = curpos.y;
@@ -79,6 +80,7 @@
void
dwrite(s,len)
char *s;
+int len;
{
if ( len <= 0 )
return;
@@ -162,6 +164,7 @@
*/
void
d_cursor(visible)
+int visible;
{
unless ( os_cursor(visible) )
dputs(visible ? CURon : CURoff);
@@ -172,6 +175,7 @@
*/
void
d_highlight(yes_or_no)
+int yes_or_no;
{
unless ( os_highlight(yes_or_no) ) {
if ( SO && SE )
@@ -376,6 +380,7 @@
void
printbuf(s, len)
char *s;
+int len;
{
int size,oxp = curpos.x;
char buf[MAXCOLS+1];
--- a/editcor.c
+++ b/editcor.c
@@ -38,6 +38,7 @@
*/
void
maybe_refresh_screen(redraw)
+int redraw;
{
logit(("maybe_refresh_screen(%d) curr = %d, ptop = %d, pend = %d", redraw, curr, ptop, pend));
@@ -198,6 +199,7 @@
bool
execute(start, end)
+int start, end;
{
FILEDESC tf;
FILE *f;
--- a/exec.c
+++ b/exec.c
@@ -585,6 +585,7 @@
bool
outputf(fname, entire_file)
char *fname;
+int entire_file;
{
bool whole;
FILE *f;
--- a/find.c
+++ b/find.c
@@ -356,6 +356,7 @@
char *
expr_errstring(errno)
+int errno;
{
switch (errno) {
case ERR_NOMATCH: return "Pattern not found";
@@ -375,6 +376,7 @@
search(start, bufp)
/* get a token for find & find it in the buffer
*/
+int start;
char **bufp;
{
int pos;
@@ -414,7 +416,9 @@
static int
address_fragment(start, bufp, offset)
/* parse part of an address (a /pattern/, ?pattern?, [0-9]*, 0, $) */
+int start;
char **bufp;
+int offset;
{
int addr;
@@ -473,7 +477,9 @@
int
findparse(start, bufp, offset) /* driver for ?, /, && : lineranges */
+int start;
char **bufp;
+int offset;
{
int addr;
char c;
--- a/misc.c
+++ b/misc.c
@@ -26,6 +26,7 @@
bool
lvgetline(str, size)
char *str;
+int size;
{
int len;
char flag;
@@ -469,6 +470,7 @@
int
Max(a,b)
+int a, b;
{
return (a>b) ? a : b;
}
@@ -477,6 +479,7 @@
int
Min(a,b)
+int a, b;
{
return (a<b) ? a : b;
}
--- a/unixcall.c
+++ b/unixcall.c
@@ -93,6 +93,7 @@
int
os_write(s,len)
char *s;
+int len;
{
return 0;
}
@@ -100,6 +101,7 @@
int
os_gotoxy(x,y)
+int x, y;
{
return 0;
}
|