1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ae,v 1.1 2007/12/20 13:12:13 obache Exp $
--- 1wsnsut.c.orig 2000-05-03 20:31:51.000000000 +0000
+++ 1wsnsut.c
@@ -410,7 +410,7 @@ int ScriptStep(int portnum, Script *Stat
{
scnt = sprintf(statusmsg,"Tag file found on ");
// print rom
- owSerialNum(portnum, &(uchar)trom[0], TRUE);
+ owSerialNum(portnum, &trom[0], TRUE);
for (i = 7; i >= 0; i--)
scnt += sprintf(statusmsg + scnt,"%02X",trom[i]);
scnt += sprintf(statusmsg + scnt,"\n");
@@ -822,7 +822,7 @@ int DeviceCheckedForTag(int portnum, uch
*retry_ptr = NULL;
// read the rom to check
- owSerialNum(portnum, &(uchar)trom[0], TRUE);
+ owSerialNum(portnum, &trom[0], TRUE);
// loop through all of the rom's known
for (s = 0; s < stack_num; s++)
|