File: gcc15.patch

package info (click to toggle)
ssvnc 1.0.29-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,304 kB
  • sloc: ansic: 20,798; tcl: 15,833; java: 8,263; sh: 3,640; makefile: 2,041; perl: 41
file content (45 lines) | stat: -rw-r--r-- 1,181 bytes parent folder | download
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
Description: Fix to conform to C23
Bug-Debian: https://bugs.debian.org/1097933

--- a/vnc_unixsrc/vncviewer/desktop.c
+++ b/vnc_unixsrc/vncviewer/desktop.c
@@ -51,7 +51,7 @@ XImage *image_scale = NULL;
 
 int image_is_shm = 0;
 
-static Cursor CreateDotCursor();
+static Cursor CreateDotCursor(int which);
 static void CopyBGR233ToScreen(CARD8 *buf, int x, int y, int width,int height);
 static void HandleBasicDesktopEvent(Widget w, XtPointer ptr, XEvent *ev,
 				    Boolean *cont);
@@ -2488,9 +2488,9 @@ SendRFBEvent(Widget w, XEvent *ev, Strin
  * CreateDotCursor.
  */
 
-#ifndef very_small_dot_cursor
 static Cursor
 CreateDotCursor(int which)
+#ifndef very_small_dot_cursor
 {
 	Cursor cursor;
 	Pixmap src, msk;
@@ -2518,8 +2518,6 @@ CreateDotCursor(int which)
 	return cursor;
 }
 #else
-static Cursor
-CreateDotCursor()
 {
 	Cursor cursor;
 	Pixmap src, msk;
--- a/vnc_unixsrc/vncviewer/vncviewer.h
+++ b/vnc_unixsrc/vncviewer/vncviewer.h
@@ -320,7 +320,7 @@ extern void JumpDown(Widget w, XEvent *e
 
 /* listen.c */
 
-extern void listenForIncomingConnections();
+extern void listenForIncomingConnections(int *argc, char **argv, int listenArgIndex);
 
 /* misc.c */