Add xrdpapi/simple.c to the CI

This commit is contained in:
matt335672 2022-05-19 13:19:25 +01:00
parent 58573c4110
commit dabd049ad2
2 changed files with 17 additions and 6 deletions

View File

@ -16,3 +16,14 @@ libxrdpapi_la_SOURCES = \
libxrdpapi_la_LIBADD = \ libxrdpapi_la_LIBADD = \
$(top_builddir)/common/libcommon.la $(top_builddir)/common/libcommon.la
# Build the 'simple' example program, so it's added to the CI
noinst_PROGRAMS = xrdp-xrdpapi-simple
xrdp_xrdpapi_simple_SOURCES = \
simple.c
# If you change this, update the standalone build instructions in simple.c
xrdp_xrdpapi_simple_LDADD = \
libxrdpapi.la \
$(top_builddir)/common/libcommon.la

View File

@ -102,18 +102,18 @@ run_echo_test(void)
int rv; int rv;
int count; int count;
int pkt_count; int pkt_count;
int i; unsigned int i;
int bytes_written; unsigned int bytes_written;
int bytes_read; unsigned int bytes_read;
unsigned char c; unsigned char c;
unsigned char *rd_ptr; char *rd_ptr;
unsigned char *wr_ptr; char *wr_ptr;
/* fill out_buf[] with incremental values */ /* fill out_buf[] with incremental values */
for (i = 0, c = 0; i < 8192; i++, c++) for (i = 0, c = 0; i < 8192; i++, c++)
{ {
out_buf[i] = c; out_buf[i] = (char)c;
} }
/* open a virtual channel named ECHO */ /* open a virtual channel named ECHO */