You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
777 B

  1. --- a/xinetd/connection.c
  2. +++ b/xinetd/connection.c
  3. @@ -14,6 +14,7 @@
  4. #include <syslog.h>
  5. #include <stdlib.h>
  6. #include <unistd.h>
  7. +#include <inttypes.h>
  8. #include <netinet/tcp.h>
  9. @@ -218,11 +219,7 @@ void conn_dump( const connection_s *cp,
  10. tabprint( fd, 1, "service = %s\n", SVC_ID( cp->co_sp ) ) ;
  11. tabprint( fd, 1, "descriptor = %d\n", cp->co_descriptor ) ;
  12. -#if defined(__GNUC__) && !defined(__arch64__) && !defined(__alpha__)
  13. - tabprint( fd, 1, "flags = %#llx\n", cp->co_flags ) ;
  14. -#else
  15. - tabprint( fd, 1, "flags = %#lx\n", cp->co_flags ) ;
  16. -#endif
  17. + tabprint( fd, 1, "flags = %#" PRIx64 "\n", cp->co_flags ) ;
  18. tabprint( fd, 1, "remote_address = %s,%d\n", name,
  19. ntohs( cp->co_remote_address.sa_in.sin_port ) ) ;
  20. }