2
0
Эх сурвалжийг харах

core: typedefed struct proxy_l to proxy_l_t

Daniel-Constantin Mierla 7 жил өмнө
parent
commit
a41db4b0f5
1 өөрчлөгдсөн 3 нэмэгдсэн , 4 устгасан
  1. 3 4
      src/core/proxy.h

+ 3 - 4
src/core/proxy.h

@@ -33,7 +33,7 @@
 #include "str.h"
 #include "config.h"
 
-struct proxy_l{
+typedef struct proxy_l{
 	struct proxy_l* next;
 	str name; /* original name */
 	struct hostent host; /* addresses */
@@ -49,7 +49,7 @@ struct proxy_l{
 	int tx;
 	int tx_bytes;
 	int errors;
-};
+} proxy_l_t;
 
 extern struct proxy_l* proxies;
 
@@ -90,5 +90,4 @@ inline static void proxy_mark(struct proxy_l* p, int err)
 }
 
 
-#endif
-
+#endif