diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-01-11 01:17:39 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-01-11 01:17:39 +0000 |
commit | 1f0961368f58a9fec319d86c79a86a9f0d008cf5 (patch) | |
tree | c712a897bb34ade3c03a06ba754264153ac3bc16 /polyp/parseaddr.h | |
parent | 6c512fb5a3fdb578179be79672c5096de1a1d25b (diff) |
* remove a lot of compiler warnings introduced by using some new GCC flags
* add typedefs for public structs and enums and drop the struct/enum prefixs from all uses where it makes sense
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@447 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/parseaddr.h')
-rw-r--r-- | polyp/parseaddr.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/polyp/parseaddr.h b/polyp/parseaddr.h index 5ddc0351..f0efd766 100644 --- a/polyp/parseaddr.h +++ b/polyp/parseaddr.h @@ -24,19 +24,19 @@ #include <inttypes.h> -enum pa_parsed_address_type { +typedef enum pa_parsed_address_type { PA_PARSED_ADDRESS_UNIX, PA_PARSED_ADDRESS_TCP4, PA_PARSED_ADDRESS_TCP6, PA_PARSED_ADDRESS_TCP_AUTO -}; +} pa_parsed_address_type; -struct pa_parsed_address { - enum pa_parsed_address_type type; +typedef struct pa_parsed_address { + pa_parsed_address_type type; char *path_or_host; uint16_t port; -}; +} pa_parsed_address; -int pa_parse_address(const char *a, struct pa_parsed_address *ret_p); +int pa_parse_address(const char *a, pa_parsed_address *ret_p); #endif |