diff options
author | Gerald Combs <gerald@wireshark.org> | 2023-06-18 10:32:09 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2023-06-18 10:32:09 -0700 |
commit | c6ded71ac455d50b21213ec2af17a8fea5c12cc6 (patch) | |
tree | 09538fd6185ba03672feb09cc217474deac54530 /tools | |
parent | 1dd5c10b34c6ccfce44353e75807230f7c08eead (diff) |
Convert pci-ids.[ch] to C99
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/make-pci-ids.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tools/make-pci-ids.py b/tools/make-pci-ids.py index 4be4b67d94..feaae82ec4 100755 --- a/tools/make-pci-ids.py +++ b/tools/make-pci-ids.py @@ -37,18 +37,18 @@ CODE_PREFIX = """\ typedef struct { - guint16 vid; - guint16 did; - guint16 svid; - guint16 ssid; - gchar *name; + uint16_t vid; + uint16_t did; + uint16_t svid; + uint16_t ssid; + char *name; } pci_id_t; typedef struct { - guint16 vid; - guint16 count; + uint16_t vid; + uint16_t count; pci_id_t *ids_ptr; } pci_vid_index_t; @@ -56,11 +56,11 @@ typedef struct """ CODE_POSTFIX = """ -static pci_vid_index_t *get_vid_index(guint16 vid) +static pci_vid_index_t *get_vid_index(uint16_t vid) { - guint32 start_index = 0; - guint32 end_index = 0; - guint32 idx = 0; + uint32_t start_index = 0; + uint32_t end_index = 0; + uint32_t idx = 0; end_index = sizeof(pci_vid_index)/sizeof(pci_vid_index[0]); @@ -90,7 +90,7 @@ static pci_vid_index_t *get_vid_index(guint16 vid) } -const char *pci_id_str(guint16 vid, guint16 did, guint16 svid, guint16 ssid) +const char *pci_id_str(uint16_t vid, uint16_t did, uint16_t svid, uint16_t ssid) { unsigned int i; static char *not_found = \"Not found\"; |