Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
117ffb7b
Commit
117ffb7b
authored
May 10, 2013
by
deuce
Browse files
Old stale warning fixin's need to be comitted.
parent
39a778b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
src/uifc/uifc32.c
src/uifc/uifc32.c
+10
-9
No files found.
src/uifc/uifc32.c
View file @
117ffb7b
...
...
@@ -494,7 +494,8 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
,
char
*
initial_title
,
char
**
option
)
{
uchar
line
[
MAX_COLS
*
2
],
shade
[
MAX_LINES
*
4
],
*
ptr
,
search
[
MAX_OPLN
],
bline
=
0
,
*
win
;
,
bline
=
0
,
*
win
;
char
search
[
MAX_OPLN
];
int
height
,
y
;
int
i
,
j
,
opts
=
0
,
s
=
0
;
/* s=search index into options */
int
is_redraw
=
0
;
...
...
@@ -666,7 +667,7 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
puttext
(
sav
[
api
->
savnum
].
left
,
sav
[
api
->
savnum
].
top
,
sav
[
api
->
savnum
].
right
,
sav
[
api
->
savnum
].
bot
,
sav
[
api
->
savnum
].
buf
);
/* put original window back */
FREE_AND_NULL
(
sav
[
api
->
savnum
].
buf
);
if
((
sav
[
api
->
savnum
].
buf
=
(
char
*
)
malloc
((
width
+
3
)
*
(
height
+
2
)
*
2
))
==
NULL
)
{
if
((
sav
[
api
->
savnum
].
buf
=
malloc
((
width
+
3
)
*
(
height
+
2
)
*
2
))
==
NULL
)
{
cprintf
(
"UIFC line %d: error allocating %u bytes."
,
__LINE__
,(
width
+
3
)
*
(
height
+
2
)
*
2
);
free
(
title
);
...
...
@@ -691,7 +692,7 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
}
}
else
{
if
((
sav
[
api
->
savnum
].
buf
=
(
char
*
)
malloc
((
width
+
3
)
*
(
height
+
2
)
*
2
))
==
NULL
)
{
if
((
sav
[
api
->
savnum
].
buf
=
malloc
((
width
+
3
)
*
(
height
+
2
)
*
2
))
==
NULL
)
{
cprintf
(
"UIFC line %d: error allocating %u bytes."
,
__LINE__
,(
width
+
3
)
*
(
height
+
2
)
*
2
);
free
(
title
);
...
...
@@ -1006,7 +1007,7 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar
if
(
mode
&
WIN_ACT
)
{
if
(
!
(
api
->
mode
&
UIFC_NHM
))
uifc_mouse_disable
();
if
((
win
=
(
char
*
)
alloca
((
width
+
3
)
*
(
height
+
2
)
*
2
))
==
NULL
)
{
if
((
win
=
alloca
((
width
+
3
)
*
(
height
+
2
)
*
2
))
==
NULL
)
{
cprintf
(
"UIFC line %d: error allocating %u bytes."
,
__LINE__
,(
width
+
3
)
*
(
height
+
2
)
*
2
);
return
(
-
1
);
...
...
@@ -1870,16 +1871,16 @@ void getstrupd(int left, int top, int width, char *outstr, int cursoffset, int *
/****************************************************************************/
int
ugetstr
(
int
left
,
int
top
,
int
width
,
char
*
outstr
,
int
max
,
long
mode
,
int
*
lastkey
)
{
u
char
*
str
,
ins
=
0
;
char
*
str
,
ins
=
0
;
int
ch
;
int
i
,
j
,
k
,
f
=
0
;
/* i=offset, j=length */
BOOL
gotdecimal
=
FALSE
;
int
soffset
=
0
;
struct
mouse_event
mevnt
;
unsigned
char
*
pastebuf
=
NULL
;
char
*
pastebuf
=
NULL
;
unsigned
char
*
pb
=
NULL
;
if
((
str
=
(
uchar
*
)
alloca
(
max
+
1
))
==
NULL
)
{
if
((
str
=
alloca
(
max
+
1
))
==
NULL
)
{
cprintf
(
"UIFC line %d: error allocating %u bytes
\r\n
"
,
__LINE__
,(
max
+
1
));
_setcursortype
(
cursor
);
...
...
@@ -1940,7 +1941,7 @@ int ugetstr(int left, int top, int width, char *outstr, int max, long mode, int
if
(
i
>
j
)
i
=
j
;
pastebuf
=
getcliptext
();
pb
=
pastebuf
;
pb
=
(
unsigned
char
*
)
pastebuf
;
f
=
0
;
}
}
...
...
@@ -2018,7 +2019,7 @@ int ugetstr(int left, int top, int width, char *outstr, int max, long mode, int
if
(
i
>
j
)
i
=
j
;
pastebuf
=
getcliptext
();
pb
=
pastebuf
;
pb
=
(
unsigned
char
*
)
pastebuf
;
ch
=
0
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment