Package: lockdev
Severity: normal
Tags: patch

The debugging (-d) option in src/sample.c is broken.  This patch
fixes that.

BTW, this program could be included in the -dev package.


Regards,
Roger

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13.1
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
--- lockdev-1.0.1.original/src/sample.c	1999-12-01 11:50:09.000000000 +0000
+++ lockdev-1.0.1/src/sample.c	2005-10-02 16:56:59.749882402 +0100
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <stdlib.h>
 #include "lockdev.h"
 
 void
@@ -7,8 +8,6 @@
 	exit( -1 );
 }
 
-int debug;
-
 
 int
 main( int argc, char *argv[] )
@@ -25,7 +24,7 @@
 			case 'u': 
 			case 'r': ch = *p; break;
 			case 'd':
-				debug = atoi(++p);
+				liblockdev_incr_debug();
 				break;
 			default: usage(); break;
 			}

Reply via email to