Compare commits

...

16 Commits

Author SHA1 Message Date
Roman Savochenko 1434025768 Crashes after the VNC client disconnect
6 months ago
Slávek Banko 3867fea38f
Raise the minimum required version of CMake to 3.5.
6 months ago
Michele Calgaro 6c3b9ce309
Replace Q_OBJECT with TQ_OBJECT
10 months ago
Slávek Banko 19fdbe7281
Add sys/socket.h include in sasl.c to resolve FTBFS.
1 year ago
Slávek Banko 711aa54404
Add path to the local CMake modules to detect libraries.
1 year ago
Michele Calgaro d12615deb3
Remove unnecessary re-definition of true/false boolean values.
2 years ago
François Andriot 512fd4d832 Fix 'true' definition.
2 years ago
Michele Calgaro 1aae5a01b3
Remove obsolete setting of CMAKE_MODULE_PATH in cmake files.
2 years ago
Slávek Banko d8cf476afd
Raise the minimum required version of CMake to 3.1.
2 years ago
Slávek Banko c87a678c21
Raise the minimum required version of CMake to 2.8.12.
3 years ago
Slávek Banko c22381d0e4
Update the CMake rules according to the previous rename.
3 years ago
Slávek Banko b527887648
Rename main.c to main.cpp because it needs to be built as C++
3 years ago
Michele Calgaro 5255fdc964
Renaming of files in preparation for code style tools.
3 years ago
Michele Calgaro 25d23bd00b
Removed additional code formatting modelines.
4 years ago
Michele Calgaro 6239c52191
Removed code formatting modelines.
4 years ago
Michele Calgaro 4a0c933b07
Removed explicit usage of the 'register' keyword.
4 years ago

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.6)
cmake_minimum_required( VERSION 3.5 )
if( POLICY CMP0037 )
cmake_policy(SET CMP0037 NEW)
endif( POLICY CMP0037 )
@ -314,7 +314,7 @@ endif(WITH_SASL AND LIBSASL2_LIBRARIES AND SASL2_INCLUDE_DIR)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/rfb/rfbconfig.h.cmakein ${CMAKE_CURRENT_BINARY_DIR}/rfb/rfbconfig.h)
set(LIBVNCSERVER_SOURCES
${LIBVNCSERVER_DIR}/main.cc
${LIBVNCSERVER_DIR}/main.cpp
${LIBVNCSERVER_DIR}/rfbserver.c
${LIBVNCSERVER_DIR}/rfbregion.c
${LIBVNCSERVER_DIR}/auth.c

@ -82,7 +82,7 @@ static const unsigned char pc2[48] = {
void rfbDesKey(unsigned char *key,
int edf)
{
register int i, j, l, m, n;
int i, j, l, m, n;
unsigned char pc1m[56], pcr[56];
unsigned long kn[32];
@ -115,11 +115,11 @@ void rfbDesKey(unsigned char *key,
return;
}
static void cookey(register unsigned long *raw1)
static void cookey(unsigned long *raw1)
{
register unsigned long *cook, *raw0;
unsigned long *cook, *raw0;
unsigned long dough[32];
register int i;
int i;
cook = dough;
for( i = 0; i < 16; i++, raw1++ ) {
@ -138,9 +138,9 @@ static void cookey(register unsigned long *raw1)
}
void rfbUseKey(register unsigned long *from)
void rfbUseKey(unsigned long *from)
{
register unsigned long *to, *endp;
unsigned long *to, *endp;
to = KnL, endp = &KnL[32];
while( to < endp ) *to++ = *from++;
@ -158,8 +158,8 @@ void rfbDes(unsigned char *inblock,
return;
}
static void scrunch(register unsigned char *outof,
register unsigned long *into)
static void scrunch(unsigned char *outof,
unsigned long *into)
{
*into = (*outof++ & 0xffL) << 24;
*into |= (*outof++ & 0xffL) << 16;
@ -172,8 +172,8 @@ static void scrunch(register unsigned char *outof,
return;
}
static void unscrun(register unsigned long *outof,
register unsigned char *into)
static void unscrun(unsigned long *outof,
unsigned char *into)
{
*into++ = (unsigned char)((*outof >> 24) & 0xffL);
*into++ = (unsigned char)((*outof >> 16) & 0xffL);
@ -330,11 +330,11 @@ static const unsigned long SP8[64] = {
0x10041040L, 0x00041000L, 0x00041000L, 0x00001040L,
0x00001040L, 0x00040040L, 0x10000000L, 0x10041000L };
static void desfunc(register unsigned long *block,
register unsigned long *keys)
static void desfunc(unsigned long *block,
unsigned long *keys)
{
register unsigned long fval, work, right, leftt;
register int round;
unsigned long fval, work, right, leftt;
int round;
leftt = block[0];
right = block[1];

@ -439,6 +439,3 @@ typedef union { lzo_bytep a; lzo_uint32_t b; } __lzo_pu32_u;
#endif
#endif /* already included */
/* vim:set ts=4 et: */

@ -2994,5 +2994,3 @@ LZO_COMPILE_TIME_ASSERT_HEADER(sizeof(lzo_int_fast64_t) == sizeof(lzo_uint_fast6
#endif
#endif /* already included */
/* vim:set ts=4 sw=4 et: */

@ -38,6 +38,10 @@
#include <errno.h>
#include <rfb/rfbclient.h>
#if LIBVNCSERVER_HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef WIN32
#undef SOCKET
#include <winsock2.h>

@ -19,11 +19,6 @@ extern "C" {
#include <stdarg.h>
#include <errno.h>
#ifndef false
#define false 0
#define true -1
#endif
#ifdef LIBVNCSERVER_HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
@ -39,10 +34,10 @@ extern "C" {
#include <time.h>
}
#include <ntqobject.h>
#include <ntqvariant.h>
#include <ntqtimer.h>
#include <ntqthread.h>
#include <tqobject.h>
#include <tqvariant.h>
#include <tqtimer.h>
#include <tqthread.h>
#include "main.h"
@ -1103,14 +1098,14 @@ void rfbScreenCleanup(rfbScreenInfoPtr screen)
rfbReleaseClientIterator(i);
if (mOnHoldClientHandlerThread) {
mOnHoldClientHandlerThread->exit();
//mOnHoldClientHandlerThread->exit();
delete mOnHoldClientHandlerThread;
mOnHoldClientHandlerThread = NULL;
delete mOnHoldClientHandler;
mOnHoldClientHandler = NULL;
}
if (mControlPipeHandlerThread) {
mControlPipeHandlerThread->exit();
//mControlPipeHandlerThread->exit();
delete mControlPipeHandlerThread;
mControlPipeHandlerThread = NULL;
delete mControlPipeHandler;

@ -13,7 +13,7 @@
class ControlPipeHandlerObject : public TQObject
{
Q_OBJECT
TQ_OBJECT
public:
ControlPipeHandlerObject();
@ -28,7 +28,7 @@ class ControlPipeHandlerObject : public TQObject
class OnHoldClientHandlerObject : public TQObject
{
Q_OBJECT
TQ_OBJECT
public:
OnHoldClientHandlerObject();
@ -43,7 +43,7 @@ class OnHoldClientHandlerObject : public TQObject
class ClientOutputHandlerObject : public TQObject
{
Q_OBJECT
TQ_OBJECT
public:
ClientOutputHandlerObject();

@ -29245,7 +29245,6 @@ module.exports = function (str) {
trailingStatement: trailingStatement
};
}());
/* vim: set sw=4 ts=4 et tw=80 : */
},{}],238:[function(require,module,exports){
/*
@ -29382,7 +29381,6 @@ module.exports = function (str) {
isIdentifierPartES6: isIdentifierPartES6
};
}());
/* vim: set sw=4 ts=4 et tw=80 : */
},{}],239:[function(require,module,exports){
/*
@ -29549,7 +29547,6 @@ module.exports = function (str) {
isIdentifierES6: isIdentifierES6
};
}());
/* vim: set sw=4 ts=4 et tw=80 : */
},{"./code":238}],240:[function(require,module,exports){
/*
@ -29584,7 +29581,6 @@ module.exports = function (str) {
exports.code = require('./code');
exports.keyword = require('./keyword');
}());
/* vim: set sw=4 ts=4 et tw=80 : */
},{"./ast":237,"./code":238,"./keyword":239}],241:[function(require,module,exports){
module.exports={
@ -40323,7 +40319,6 @@ module.exports = function (str) {
};
},{}],474:[function(require,module,exports){
/* -*- Mode: js; js-indent-level: 2; -*- */
/*
* Copyright 2011 Mozilla Foundation and contributors
* Licensed under the New BSD license. See LICENSE or:
@ -40429,7 +40424,6 @@ ArraySet.prototype.toArray = function ArraySet_toArray() {
exports.ArraySet = ArraySet;
},{"./util":483}],475:[function(require,module,exports){
/* -*- Mode: js; js-indent-level: 2; -*- */
/*
* Copyright 2011 Mozilla Foundation and contributors
* Licensed under the New BSD license. See LICENSE or:
@ -40571,7 +40565,6 @@ exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) {
};
},{"./base64":476}],476:[function(require,module,exports){
/* -*- Mode: js; js-indent-level: 2; -*- */
/*
* Copyright 2011 Mozilla Foundation and contributors
* Licensed under the New BSD license. See LICENSE or:
@ -40640,7 +40633,6 @@ exports.decode = function (charCode) {
};
},{}],477:[function(require,module,exports){
/* -*- Mode: js; js-indent-level: 2; -*- */
/*
* Copyright 2011 Mozilla Foundation and contributors
* Licensed under the New BSD license. See LICENSE or:
@ -40753,7 +40745,6 @@ exports.search = function search(aNeedle, aHaystack, aCompare, aBias) {
};
},{}],478:[function(require,module,exports){
/* -*- Mode: js; js-indent-level: 2; -*- */
/*
* Copyright 2014 Mozilla Foundation and contributors
* Licensed under the New BSD license. See LICENSE or:
@ -40834,7 +40825,6 @@ MappingList.prototype.toArray = function MappingList_toArray() {
exports.MappingList = MappingList;
},{"./util":483}],479:[function(require,module,exports){
/* -*- Mode: js; js-indent-level: 2; -*- */
/*
* Copyright 2011 Mozilla Foundation and contributors
* Licensed under the New BSD license. See LICENSE or:
@ -40950,7 +40940,6 @@ exports.quickSort = function (ary, comparator) {
};
},{}],480:[function(require,module,exports){
/* -*- Mode: js; js-indent-level: 2; -*- */
/*
* Copyright 2011 Mozilla Foundation and contributors
* Licensed under the New BSD license. See LICENSE or:
@ -42034,7 +42023,6 @@ IndexedSourceMapConsumer.prototype._parseMappings =
exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer;
},{"./array-set":474,"./base64-vlq":475,"./binary-search":477,"./quick-sort":479,"./util":483}],481:[function(require,module,exports){
/* -*- Mode: js; js-indent-level: 2; -*- */
/*
* Copyright 2011 Mozilla Foundation and contributors
* Licensed under the New BSD license. See LICENSE or:
@ -42440,7 +42428,6 @@ SourceMapGenerator.prototype.toString =
exports.SourceMapGenerator = SourceMapGenerator;
},{"./array-set":474,"./base64-vlq":475,"./mapping-list":478,"./util":483}],482:[function(require,module,exports){
/* -*- Mode: js; js-indent-level: 2; -*- */
/*
* Copyright 2011 Mozilla Foundation and contributors
* Licensed under the New BSD license. See LICENSE or:
@ -42849,7 +42836,6 @@ SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSou
exports.SourceNode = SourceNode;
},{"./source-map-generator":481,"./util":483}],483:[function(require,module,exports){
/* -*- Mode: js; js-indent-level: 2; -*- */
/*
* Copyright 2011 Mozilla Foundation and contributors
* Licensed under the New BSD license. See LICENSE or:

Loading…
Cancel
Save