From bd811d2d39f49087310be508e2ea6278e817d6f1 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Mon, 9 Jan 2012 23:37:36 +0100 Subject: tools/intel_stepping: fixup new warnings Signed-Off-by: Daniel Vetter --- tools/intel_stepping.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'tools/intel_stepping.c') diff --git a/tools/intel_stepping.c b/tools/intel_stepping.c index ea8eecbb..f6f15d1a 100644 --- a/tools/intel_stepping.c +++ b/tools/intel_stepping.c @@ -35,7 +35,7 @@ #include "intel_gpu_tools.h" static void -print_clock(char *name, int clock) { +print_clock(const char *name, int clock) { if (clock == -1) printf("%s clock: unknown", name); else @@ -167,14 +167,14 @@ print_clock_info(struct pci_device *pci_dev) int main(int argc, char **argv) { struct pci_device *dev, *bridge; - int err; + int error; uint8_t stepping; - char *step_desc = "??"; + const char *step_desc = "??"; - err = pci_system_init(); - if (err != 0) { + error = pci_system_init(); + if (error != 0) { fprintf(stderr, "Couldn't initialize PCI system: %s\n", - strerror(err)); + strerror(error)); exit(1); } @@ -183,10 +183,10 @@ int main(int argc, char **argv) if (dev == NULL) errx(1, "Couldn't find graphics card"); - err = pci_device_probe(dev); - if (err != 0) { + error = pci_device_probe(dev); + if (error != 0) { fprintf(stderr, "Couldn't probe graphics card: %s\n", - strerror(err)); + strerror(error)); exit(1); } @@ -197,10 +197,10 @@ int main(int argc, char **argv) if (dev == NULL) errx(1, "Couldn't bridge"); - err = pci_device_cfg_read_u8(bridge, &stepping, 8); - if (err != 0) { + error = pci_device_cfg_read_u8(bridge, &stepping, 8); + if (error != 0) { fprintf(stderr, "Couldn't read revision ID: %s\n", - strerror(err)); + strerror(error)); exit(1); } -- cgit v1.2.3