Blame SOURCES/dropwatch-1.4-typecast.patch

316ed4
diff -up dropwatch-1.4/src/lookup_kas.c.typecast dropwatch-1.4/src/lookup_kas.c
316ed4
--- dropwatch-1.4/src/lookup_kas.c.typecast	2012-08-27 14:00:07.008473145 +0200
316ed4
+++ dropwatch-1.4/src/lookup_kas.c	2012-08-27 13:59:41.000000000 +0200
316ed4
@@ -102,7 +102,8 @@ static int lookup_kas_proc(__u64 pc, str
316ed4
 		 *  - "%pK %c %s\n" (for kernel internal symbols), or
316ed4
 		 *  - "%pK %c %s\t[%s]\n" (for module-provided symbols)
316ed4
 		 */
316ed4
-		if (fscanf(pf, "%llx %*s %as [ %*[^]] ]", &ppc, &name) < 0) {
316ed4
+		if (fscanf(pf, "%llx %*s %as [ %*[^]] ]",
316ed4
+					(unsigned long long *)&ppc, &name) < 0) {
316ed4
 			perror("Error Scanning File: ");
316ed4
 			break;
316ed4
 		}
316ed4
diff -up dropwatch-1.4/src/main.c.typecast dropwatch-1.4/src/main.c
316ed4
--- dropwatch-1.4/src/main.c.typecast	2012-05-31 00:33:50.000000000 +0200
316ed4
+++ dropwatch-1.4/src/main.c	2012-08-27 13:59:56.621473369 +0200
316ed4
@@ -333,7 +333,8 @@ void handle_dm_alert_msg(struct netlink_
316ed4
 			printf ("%d drops at location %p\n", alert->points[i].count, location);
316ed4
 		else
316ed4
 			printf ("%d drops at %s+%llx (%p)\n",
316ed4
-				alert->points[i].count, res.symbol, res.offset, location);
316ed4
+				alert->points[i].count, res.symbol,
316ed4
+				(unsigned long long)res.offset, location);
316ed4
 		acount++;
316ed4
 		if (alimit && (acount == alimit)) {
316ed4
 			printf("Alert limit reached, deactivating!\n");