diff options
Diffstat (limited to 'sysutils/ksysguardd/files/patch-FreeBSD__stat.c')
-rw-r--r-- | sysutils/ksysguardd/files/patch-FreeBSD__stat.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/ksysguardd/files/patch-FreeBSD__stat.c b/sysutils/ksysguardd/files/patch-FreeBSD__stat.c new file mode 100644 index 000000000000..b79b81fbcad8 --- /dev/null +++ b/sysutils/ksysguardd/files/patch-FreeBSD__stat.c @@ -0,0 +1,20 @@ +--- ./FreeBSD/stat.c.orig 2011-04-01 12:52:43.000000000 +0200 ++++ ./FreeBSD/stat.c 2011-04-23 02:14:24.221891829 +0200 +@@ -252,7 +252,7 @@ + int irq; + + sscanf(cmd + 18, "%d", &irq); +- if (irq > 255 - msi_offset) ++ if (irq > 255) + irq -= msi_offset - 1; + fprintf(CurrentClient, "%ld\n", intr[intr_map[irq - 1]]); + } +@@ -261,7 +261,7 @@ + int irq; + + sscanf(cmd + 18, "%d", &irq); +- if (irq > 255 - msi_offset) ++ if (irq > 255) + irq -= msi_offset - 1; + fprintf(CurrentClient, "%s\t0\t0\t1/s\n", intrname[intr_map[irq - 1]]); + } |