[Pcsclite-git-commit] r7108 - trunk/HandlerTest/Host
ludovic.rousseau at free.fr
ludovic.rousseau at free.fr
Fri Aug 7 15:44:40 UTC 2015
Author: rousseau
Date: 2015-08-07 15:44:40 +0000 (Fri, 07 Aug 2015)
New Revision: 7108
Modified:
trunk/HandlerTest/Host/handler_test.c
Log:
Use atoi(3) for int
timerequest and channel are of type int. We must use atoi(3) instead of
atol(3) to convert them.
Problem reported on Mac OS X.
Modified: trunk/HandlerTest/Host/handler_test.c
===================================================================
--- trunk/HandlerTest/Host/handler_test.c 2015-04-09 15:39:06 UTC (rev 7107)
+++ trunk/HandlerTest/Host/handler_test.c 2015-08-07 15:44:40 UTC (rev 7108)
@@ -161,7 +161,7 @@
break;
case 't':
- timerequest = atol(optarg);
+ timerequest = atoi(optarg);
printf("time request: %d\n", timerequest);
break;
@@ -191,7 +191,7 @@
break;
case 'c':
- channel = atol(optarg);
+ channel = atoi(optarg);
printf("Usinf channel: %d\n", channel);
break;
More information about the Pcsclite-cvs-commit
mailing list