summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libldetect.h2
-rw-r--r--lspcidrake.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/libldetect.h b/libldetect.h
index 9b90f35..2e985e3 100644
--- a/libldetect.h
+++ b/libldetect.h
@@ -18,7 +18,7 @@ struct pciusb_entry {
};
struct pciusb_entries {
struct pciusb_entry *entries;
- int nb;
+ unsigned int nb;
};
extern void pciusb_free(struct pciusb_entries *entries);
diff --git a/lspcidrake.c b/lspcidrake.c
index 9056707..f1b11fe 100644
--- a/lspcidrake.c
+++ b/lspcidrake.c
@@ -28,7 +28,7 @@ void print_id(struct pciusb_entry *e) {
}
void pci_printit(struct pciusb_entries *entries) {
- int i;
+ unsigned int i;
for (i = 0; i < entries->nb; i++) {
struct pciusb_entry *e = &entries->entries[i];
print_name(e);
@@ -42,7 +42,7 @@ void pci_printit(struct pciusb_entries *entries) {
}
void usb_printit(struct pciusb_entries *entries) {
- int i;
+ unsigned int i;
for (i = 0; i < entries->nb; i++) {
struct pciusb_entry *e = &entries->entries[i];
print_name(e);