Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
a147d903
Commit
a147d903
authored
Sep 05, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use uni_atoi instead atoi
parent
bccb45a7
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
28 additions
and
28 deletions
+28
-28
admin.cc
Utilities/Admin/admin.cc
+2
-2
mbrtuslave.cc
Utilities/MBTester/mbrtuslave.cc
+2
-2
mbrtutester.cc
Utilities/MBTester/mbrtutester.cc
+2
-2
mbslave.cc
Utilities/MBTester/mbslave.cc
+1
-1
mbtcpserver.cc
Utilities/MBTester/mbtcpserver.cc
+2
-2
mbtcptester.cc
Utilities/MBTester/mbtcptester.cc
+3
-3
iocalibr.cc
extensions/IOControl/iocalibr.cc
+14
-14
RTUExchange.cc
extensions/RTUExchange/RTUExchange.cc
+1
-1
rtustate.cc
extensions/RTUExchange/rtustate.cc
+1
-1
No files found.
Utilities/Admin/admin.cc
View file @
a147d903
...
...
@@ -649,12 +649,12 @@ int alarm(string args, UniversalInterface &ui)
if
(
separateArgs
(
args
,
arg
))
{
UniSetTypes
::
MessageCode
code
=
atoi
(
arg
.
c_str
()
);
UniSetTypes
::
MessageCode
code
=
uni_atoi
(
arg
);
UniSetTypes
::
MessageCode
cause
(
UniSetTypes
::
DefaultMessageCode
);
if
(
separateArgs
(
args
,
arg
))
{
cause
=
atoi
(
arg
.
c_str
()
);
cause
=
uni_atoi
(
arg
);
}
else
{
...
...
Utilities/MBTester/mbrtuslave.cc
View file @
a147d903
...
...
@@ -65,7 +65,7 @@ int main( int argc, char **argv )
break
;
case
't'
:
tout
=
atoi
(
optarg
);
tout
=
uni_
atoi
(
optarg
);
break
;
case
'a'
:
...
...
@@ -81,7 +81,7 @@ int main( int argc, char **argv )
break
;
case
'c'
:
replyVal
=
atoi
(
optarg
);
replyVal
=
uni_
atoi
(
optarg
);
break
;
case
'?'
:
...
...
Utilities/MBTester/mbrtutester.cc
View file @
a147d903
...
...
@@ -142,7 +142,7 @@ int main( int argc, char **argv )
reg
=
ModbusRTU
::
str2mbData
(
argv
[
optind
]);
if
(
checkArg
(
optind
+
1
,
argc
,
argv
)
)
count
=
atoi
(
argv
[
optind
+
1
]);
count
=
uni_
atoi
(
argv
[
optind
+
1
]);
break
;
case
'f'
:
...
...
@@ -196,7 +196,7 @@ int main( int argc, char **argv )
break
;
case
't'
:
tout
=
atoi
(
optarg
);
tout
=
uni_
atoi
(
optarg
);
break
;
case
'a'
:
...
...
Utilities/MBTester/mbslave.cc
View file @
a147d903
...
...
@@ -64,7 +64,7 @@ int main( int argc, char **argv )
break
;
case
't'
:
tout
=
atoi
(
optarg
);
tout
=
uni_
atoi
(
optarg
);
break
;
case
'a'
:
...
...
Utilities/MBTester/mbtcpserver.cc
View file @
a147d903
...
...
@@ -58,11 +58,11 @@ int main( int argc, char **argv )
break
;
case
'p'
:
port
=
atoi
(
optarg
);
port
=
uni_
atoi
(
optarg
);
break
;
case
't'
:
tout
=
atoi
(
optarg
);
tout
=
uni_
atoi
(
optarg
);
break
;
case
'a'
:
...
...
Utilities/MBTester/mbtcptester.cc
View file @
a147d903
...
...
@@ -108,7 +108,7 @@ int main( int argc, char **argv )
reg
=
ModbusRTU
::
str2mbData
(
argv
[
optind
]);
if
(
optind
+
1
<
argc
&&
(
argv
[
optind
+
1
])[
0
]
!=
'-'
)
count
=
atoi
(
argv
[
optind
+
1
]);
count
=
uni_
atoi
(
argv
[
optind
+
1
]);
break
;
case
'f'
:
...
...
@@ -151,11 +151,11 @@ int main( int argc, char **argv )
break
;
case
'p'
:
port
=
atoi
(
optarg
);
port
=
uni_
atoi
(
optarg
);
break
;
case
't'
:
tout
=
atoi
(
optarg
);
tout
=
uni_
atoi
(
optarg
);
break
;
case
'a'
:
...
...
extensions/IOControl/iocalibr.cc
View file @
a147d903
...
...
@@ -102,44 +102,44 @@ int main(int argc, char* argv[])
return
0
;
case
'r'
:
chan
=
atoi
(
optarg
);
case
'r'
:
chan
=
uni_
atoi
(
optarg
);
break
;
case
'd'
:
case
'd'
:
dev
=
optarg
;
break
;
case
's'
:
subdev
=
atoi
(
optarg
);
case
's'
:
subdev
=
uni_
atoi
(
optarg
);
break
;
case
'x'
:
range
=
atoi
(
optarg
);
case
'x'
:
range
=
uni_
atoi
(
optarg
);
break
;
case
'a'
:
aref
=
atoi
(
optarg
);
case
'a'
:
aref
=
uni_
atoi
(
optarg
);
break
;
case
'o'
:
openFileXml
=
optarg
;
openFileXml
=
optarg
;
break
;
case
'f'
:
saveFileXml
=
optarg
;
saveFileXml
=
optarg
;
break
;
case
'n'
:
nodeXml
=
optarg
;
nodeXml
=
optarg
;
break
;
case
'i'
:
sort_rise
=
atoi
(
optarg
);
sort_rise
=
uni_
atoi
(
optarg
);
break
;
case
'c'
:
sort_cal
=
atoi
(
optarg
);
sort_cal
=
uni_
atoi
(
optarg
);
break
;
case
'?'
:
...
...
extensions/RTUExchange/RTUExchange.cc
View file @
a147d903
...
...
@@ -1886,7 +1886,7 @@ void RTUExchange::updateMTR( RegMap::iterator& rit )
else
{
MTR
::
T4
t
(
r
->
mbval
);
IOBase
::
processingAsAI
(
&
(
*
it
),
atoi
(
t
.
sval
.
c_str
()
),
shm
,
force
);
IOBase
::
processingAsAI
(
&
(
*
it
),
uni_atoi
(
t
.
sval
),
shm
,
force
);
}
continue
;
}
...
...
extensions/RTUExchange/rtustate.cc
View file @
a147d903
...
...
@@ -59,7 +59,7 @@ int main( int argc, char **argv )
break
;
case
't'
:
tout
=
atoi
(
optarg
);
tout
=
uni_
atoi
(
optarg
);
break
;
case
'q'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment