Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing argument from incompatible pointer type #226

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

ellert
Copy link
Member

@ellert ellert commented Jul 11, 2024

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

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
Copy link
Member

@msalle msalle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

@ellert ellert merged commit a507719 into gridcf:master Jul 11, 2024
6 of 11 checks passed
@ellert ellert deleted the incomp-ptr branch July 11, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants