get rid of SOCKTYPE and FDTYPE
authorChristian Grothoff <christian@grothoff.org>
Sun, 10 Nov 2019 22:10:40 +0000 (23:10 +0100)
committerChristian Grothoff <christian@grothoff.org>
Sun, 10 Nov 2019 22:10:50 +0000 (23:10 +0100)
src/arm/arm_api.c
src/arm/gnunet-service-arm.c
src/include/platform.h
src/transport/gnunet-helper-transport-bluetooth.c
src/transport/gnunet-helper-transport-wlan.c
src/util/network.c
src/util/os_priority.c

index 4c6ce3240f04fcc6e655e9daeed18abb3fa68693..1c402a8e0cbde76d333399ff6e1102bfac11f412 100644 (file)
@@ -662,8 +662,8 @@ start_arm_service (struct GNUNET_ARM_Handle *h,
   char *config;
   char *loprefix;
   char *lopostfix;
-  SOCKTYPE ld[2];
-  SOCKTYPE *lsocks;
+  int ld[2];
+  int *lsocks;
 
   if (NULL == sigfd)
   {
index 6b6264757f45620b35e672a3d6cfd6bf38e74a6f..01bc489609c7fa5bb2bfce4b279baec73d2ea6c4 100644 (file)
@@ -756,7 +756,7 @@ start_process (struct ServiceList *sl,
   int use_debug;
   int is_simple_service;
   struct ServiceListeningInfo *sli;
-  SOCKTYPE *lsocks;
+  int *lsocks;
   unsigned int ls;
   char *binary;
   char *quotedbinary;
index dd5e287601c106e84c36c318e8a0cd4412fe9dbd..0dddd9741d2e61c322016b416a92fa74dc40f981 100644 (file)
@@ -236,9 +236,6 @@ atoll (const char *nptr);
 #define MAKE_UNALIGNED(val) val
 #endif
 
-#define FDTYPE int
-#define SOCKTYPE int
-
 /**
  * The termination signal
  */
index 9b56d092211827c979ec43d1b678057fa4435200..74806e6301d3a7b52e69616b63f7d060ea7cf888 100644 (file)
@@ -21,7 +21,6 @@
  */
 #include "gnunet_config.h"
 
-#define SOCKTYPE int
 #include <bluetooth/bluetooth.h>
 #include <bluetooth/hci.h>
 #include <bluetooth/hci_lib.h>
index 68adadbe8455ef94640d183146be0075d71ebe0f..2d5a2cf4622a5fc13d23de7a15f557e834c924da 100644 (file)
  * parts taken from aircrack-ng, parts changend.
  */
 #include "gnunet_config.h"
-#define SOCKTYPE int
-#define FDTYPE int
 #include <sys/socket.h>
 #include <sys/ioctl.h>
 #include <sys/types.h>
index 99de5a7aa8d906d4c53d4c259f6c4403e2b1488b..2b407d97c53131fd0819cdf978d613090013f327 100644 (file)
@@ -633,7 +633,7 @@ GNUNET_NETWORK_socket_free_memory_only_ (struct GNUNET_NETWORK_Handle *desc)
  * @return NULL on error (including not supported on target platform)
  */
 struct GNUNET_NETWORK_Handle *
-GNUNET_NETWORK_socket_box_native (SOCKTYPE fd)
+GNUNET_NETWORK_socket_box_native (int fd)
 {
   struct GNUNET_NETWORK_Handle *ret;
 
index 3b4858ca44921d8902adc223e9a830939b04927a..d93e0d44fd0926ef28ad21f5f758e0a87d3a4e2a 100644 (file)
@@ -346,7 +346,7 @@ start_process (int pipe_control,
                struct GNUNET_DISK_PipeHandle *pipe_stdin,
                struct GNUNET_DISK_PipeHandle *pipe_stdout,
                struct GNUNET_DISK_PipeHandle *pipe_stderr,
-               const SOCKTYPE *lsocks,
+               const int *lsocks,
                const char *filename,
                char *const argv[])
 {
@@ -725,7 +725,7 @@ GNUNET_OS_start_process (int pipe_control,
 struct GNUNET_OS_Process *
 GNUNET_OS_start_process_v (int pipe_control,
                            enum GNUNET_OS_InheritStdioFlags std_inheritance,
-                           const SOCKTYPE *lsocks,
+                           const int *lsocks,
                            const char *filename,
                            char *const argv[])
 {
@@ -761,7 +761,7 @@ GNUNET_OS_start_process_v (int pipe_control,
 struct GNUNET_OS_Process *
 GNUNET_OS_start_process_s (int pipe_control,
                            unsigned int std_inheritance,
-                           const SOCKTYPE *lsocks,
+                           const int *lsocks,
                            const char *filename,
                            ...)
 {