mirror of https://github.com/neutrinolabs/xrdp
no logic change, remove tabs
This commit is contained in:
parent
fdc6aaad8b
commit
87ab0218e2
|
@ -87,7 +87,7 @@ g_xrdp_sync(long (*sync_func)(long param1, long param2), long sync_param1,
|
|||
tc_mutex_unlock(g_sync_mutex);
|
||||
}
|
||||
while (sync_command != 0); /* loop until g_process_waiting_function()
|
||||
* has processed the request*/
|
||||
* has processed the request */
|
||||
tc_mutex_unlock(g_sync1_mutex);
|
||||
/*g_writeln("g_xrdp_sync processed BY main thread -> continue");*/
|
||||
}
|
||||
|
|
|
@ -352,8 +352,8 @@ xrdp_bitmap_load(struct xrdp_bitmap* self, const char* filename, int* palette)
|
|||
|
||||
if (!g_file_exist(filename))
|
||||
{
|
||||
log_message(LOG_LEVEL_ERROR,
|
||||
"xrdp_bitmap_load: error bitmap file [%s] does not exist",filename);
|
||||
log_message(LOG_LEVEL_ERROR, "xrdp_bitmap_load: error bitmap file [%s] "
|
||||
"does not exist", filename);
|
||||
return 1;
|
||||
}
|
||||
s = (struct stream *)NULL;
|
||||
|
@ -363,15 +363,15 @@ xrdp_bitmap_load(struct xrdp_bitmap* self, const char* filename, int* palette)
|
|||
/* read file type */
|
||||
if (g_file_read(fd, type1, 2) != 2)
|
||||
{
|
||||
log_message(LOG_LEVEL_ERROR,
|
||||
"xrdp_bitmap_load: error bitmap file [%s] read error",filename);
|
||||
log_message(LOG_LEVEL_ERROR, "xrdp_bitmap_load: error bitmap file [%s] "
|
||||
"read error", filename);
|
||||
g_file_close(fd);
|
||||
return 1;
|
||||
}
|
||||
if ((type1[0] != 'B') || (type1[1] != 'M'))
|
||||
{
|
||||
log_message(LOG_LEVEL_ERROR,
|
||||
"xrdp_bitmap_load: error bitmap file [%s] not BMP file", filename);
|
||||
log_message(LOG_LEVEL_ERROR, "xrdp_bitmap_load: error bitmap file [%s] "
|
||||
"not BMP file", filename);
|
||||
g_file_close(fd);
|
||||
return 1;
|
||||
}
|
||||
|
@ -398,8 +398,8 @@ xrdp_bitmap_load(struct xrdp_bitmap* self, const char* filename, int* palette)
|
|||
if ((header.bit_count != 4) && (header.bit_count != 8) &&
|
||||
(header.bit_count != 24))
|
||||
{
|
||||
log_message(LOG_LEVEL_ERROR,
|
||||
"xrdp_bitmap_load: error bitmap file [%s] bad bpp %d",filename, header.bit_count);
|
||||
log_message(LOG_LEVEL_ERROR, "xrdp_bitmap_load: error bitmap file [%s] "
|
||||
"bad bpp %d", filename, header.bit_count);
|
||||
free_stream(s);
|
||||
g_file_close(fd);
|
||||
return 1;
|
||||
|
@ -417,8 +417,8 @@ xrdp_bitmap_load(struct xrdp_bitmap* self, const char* filename, int* palette)
|
|||
k = g_file_read(fd, s->data + i * size, size);
|
||||
if (k != size)
|
||||
{
|
||||
log_message(LOG_LEVEL_ERROR,
|
||||
"xrdp_bitmap_load: error bitmap file [%s] read",filename);
|
||||
log_message(LOG_LEVEL_ERROR, "xrdp_bitmap_load: error bitmap "
|
||||
"file [%s] read", filename);
|
||||
}
|
||||
}
|
||||
for (i = 0; i < self->height; i++)
|
||||
|
@ -471,8 +471,8 @@ xrdp_bitmap_load(struct xrdp_bitmap* self, const char* filename, int* palette)
|
|||
k = g_file_read(fd, s->data + i * size, size);
|
||||
if (k != size)
|
||||
{
|
||||
log_message(LOG_LEVEL_ERROR,
|
||||
"xrdp_bitmap_load: error bitmap file [%s] read", filename);
|
||||
log_message(LOG_LEVEL_ERROR, "xrdp_bitmap_load: error bitmap "
|
||||
"file [%s] read", filename);
|
||||
}
|
||||
}
|
||||
for (i = 0; i < self->height; i++)
|
||||
|
@ -521,8 +521,8 @@ xrdp_bitmap_load(struct xrdp_bitmap* self, const char* filename, int* palette)
|
|||
k = g_file_read(fd, s->data + i * size, size);
|
||||
if (k != size)
|
||||
{
|
||||
log_message(LOG_LEVEL_ERROR,
|
||||
"xrdp_bitmap_load: error bitmap file [%s] read",filename);
|
||||
log_message(LOG_LEVEL_ERROR, "xrdp_bitmap_load: error bitmap "
|
||||
"file [%s] read", filename);
|
||||
}
|
||||
}
|
||||
for (i = 0; i < self->height; i++)
|
||||
|
@ -564,8 +564,8 @@ xrdp_bitmap_load(struct xrdp_bitmap* self, const char* filename, int* palette)
|
|||
}
|
||||
else
|
||||
{
|
||||
log_message(LOG_LEVEL_ERROR,
|
||||
"xrdp_bitmap_load: error loading bitmap from file [%s]", filename);
|
||||
log_message(LOG_LEVEL_ERROR, "xrdp_bitmap_load: error loading bitmap "
|
||||
"from file [%s]", filename);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
|
|
@ -355,7 +355,7 @@ xrdp_listen_main_loop(struct xrdp_listen* self)
|
|||
timeout = -1;
|
||||
if (trans_get_wait_objs(self->listen_trans, robjs, &robjs_count) != 0)
|
||||
{
|
||||
g_writeln("Listening socket is in wrong state we terminate listener") ;
|
||||
g_writeln("Listening socket is in wrong state we terminate listener") ;
|
||||
break;
|
||||
}
|
||||
/* wait - timeout -1 means wait indefinitely*/
|
||||
|
|
|
@ -1845,7 +1845,7 @@ void init_channel_allowed(struct xrdp_wm* wm)
|
|||
/* first reset allowedchannels */
|
||||
for (i = 0; i < MAX_NR_CHANNELS; i++)
|
||||
{
|
||||
/* 0 is a valid channel so we use -1 to mark the index as unused */
|
||||
/* 0 is a valid channel so we use -1 to mark the index as unused */
|
||||
wm->allowedchannels[i] = -1;
|
||||
}
|
||||
names = list_create();
|
||||
|
|
Loading…
Reference in New Issue