Преглед изворни кода

libdpkg: Move buffer_arg declaration directly into buffer_data

Guillem Jover пре 17 година
родитељ
комит
7f30800717
1 измењених фајлова са 4 додато и 6 уклоњено
  1. 4 6
      lib/dpkg/buffer.h

+ 4 - 6
lib/dpkg/buffer.h

@@ -43,13 +43,11 @@ DPKG_BEGIN_DECLS
 
 
 typedef struct buffer_data *buffer_data_t;
 typedef struct buffer_data *buffer_data_t;
 
 
-typedef union buffer_arg {
-	void *ptr;
-	int i;
-} buffer_arg;
-
 struct buffer_data {
 struct buffer_data {
-	buffer_arg data;
+	union {
+		void *ptr;
+		int i;
+	} data;
 	int type;
 	int type;
 };
 };