diff options
author | Remi Gacogne <[email protected]> | 2018-11-28 21:08:15 +0100 |
---|---|---|
committer | Remi Gacogne <[email protected]> | 2018-11-28 21:08:15 +0100 |
commit | 716bd27235fe6462271e799a758f2682fa4cb1de (patch) | |
tree | af4d6fab87bf3c56e2d726643d2bee56ccadb40f /common | |
parent | 1452b9a6ae082382215a8d0ddcdbb38df38d9aeb (diff) | |
download | libtdevnc-716bd27235fe6462271e799a758f2682fa4cb1de.tar.gz libtdevnc-716bd27235fe6462271e799a758f2682fa4cb1de.zip |
Fix -Wmisleading-indentation warnings
Diffstat (limited to 'common')
-rw-r--r-- | common/turbojpeg.c | 6 | ||||
-rw-r--r-- | common/vncauth.c | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/common/turbojpeg.c b/common/turbojpeg.c index 09df173..934e4f1 100644 --- a/common/turbojpeg.c +++ b/common/turbojpeg.c @@ -468,7 +468,8 @@ static tjhandle _tjInitCompress(tjinstance *this) if(setjmp(this->jerr.setjmp_buffer)) { /* If we get here, the JPEG code has signaled an error. */ - if(this) free(this); return NULL; + if(this) free(this); + return NULL; } jpeg_create_compress(&this->cinfo); @@ -652,7 +653,8 @@ static tjhandle _tjInitDecompress(tjinstance *this) if(setjmp(this->jerr.setjmp_buffer)) { /* If we get here, the JPEG code has signaled an error. */ - if(this) free(this); return NULL; + if(this) free(this); + return NULL; } jpeg_create_decompress(&this->dinfo); diff --git a/common/vncauth.c b/common/vncauth.c index 2a5d96f..81bb10b 100644 --- a/common/vncauth.c +++ b/common/vncauth.c @@ -207,8 +207,9 @@ rfbEncryptBytes2(unsigned char *where, const int length, unsigned char *key) { where[i] ^= key[i]; rfbDes(where, where); for (i = 8; i < length; i += 8) { - for (j = 0; j < 8; j++) + for (j = 0; j < 8; j++) { where[i + j] ^= where[i + j - 8]; - rfbDes(where + i, where + i); + } + rfbDes(where + i, where + i); } } |