36 lines
999 B
Diff
36 lines
999 B
Diff
From a1067ff6e67b9cb5f0ffeff1c08f9e37f755a543 Mon Sep 17 00:00:00 2001
|
|
From: Peter Hutterer <peter.hutterer@who-t.net>
|
|
Date: Tue, 18 Mar 2014 10:27:53 +1000
|
|
Subject: [PATCH 08/14] tools: drop global packagelen
|
|
|
|
Not necesssary, we can have this locally in the event loop
|
|
|
|
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
---
|
|
tools/isdv4-serial-debugger.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/tools/isdv4-serial-debugger.c b/tools/isdv4-serial-debugger.c
|
|
index e89623a..1a036ce 100644
|
|
--- a/tools/isdv4-serial-debugger.c
|
|
+++ b/tools/isdv4-serial-debugger.c
|
|
@@ -45,7 +45,6 @@
|
|
do { if (verbose) printf("... " __VA_ARGS__); } while(0)
|
|
|
|
static int verbose = 0;
|
|
-static int packetlength = ISDV4_PKGLEN_TPCPEN;
|
|
static ISDV4QueryReply reply;
|
|
static ISDV4TouchQueryReply touch;
|
|
|
|
@@ -423,6 +422,7 @@ int event_loop(int fd)
|
|
{
|
|
unsigned char buffer[256];
|
|
int dlen = 0;
|
|
+ int packetlength = ISDV4_PKGLEN_TPCPEN;
|
|
|
|
TRACE("Waiting for events\n");
|
|
|
|
--
|
|
1.8.5.3
|
|
|