gridcf / gct

Grid Community Toolkit
Apache License 2.0
46 stars 30 forks source link

Passing argument from incompatible pointer type #226

Closed ellert closed 1 month ago

ellert commented 1 month ago

Reported to Debian Bug Tracking System (BTS): https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1075012

globus_ftp_telnet_client.c:100:58: error: passing argument 5 of ‘globus_xio_readv’ from incompatible pointer type [-Wincompatible-pointer-types]
  100 |         res = globus_xio_readv(xio_handle, &readv, 1, 1, &len, NULL);
      |                                                          ^~~~
      |                                                          |
      |                                                          int *
In file included from globus_ftp_telnet_client.c:17:
/usr/include/globus/globus_xio.h:776:41: note: expected ‘globus_size_t *’ {aka ‘long unsigned int *’} but argument is of type ‘int *’
  776 |     globus_size_t *                     nbytes,
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
make[3]: *** [Makefile:408: globus_ftp_telnet_client.o] Error 1