gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r9701: atoi() -> strtol()


From: Markus Gothe
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r9701: atoi() -> strtol()
Date: Tue, 09 Sep 2008 05:43:09 +0200
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9701
committer: Markus Gothe <address@hidden>
branch nick: gnash
timestamp: Tue 2008-09-09 05:43:09 +0200
message:
  atoi() -> strtol()
modified:
  utilities/processor.cpp
=== modified file 'utilities/processor.cpp'
--- a/utilities/processor.cpp   2008-09-04 03:04:47 +0000
+++ b/utilities/processor.cpp   2008-09-09 03:43:09 +0000
@@ -25,6 +25,7 @@
 
 #include <iostream>
 #include <cstdio>
+#include <cstdlib>
 #include <sys/time.h>
 #include <ctime>
 
@@ -290,7 +291,7 @@
               allowed_end_hits = strtol(optarg, NULL, 0);
              break;
          case 'd':
-              delay = atoi(optarg)*1000; // delay is in microseconds
+              delay = strtol(optarg, NULL, 0)*1000; // delay is in microseconds
               // this will be recognized as a request to run at FPS speed
               if ( delay < 0 ) delay = -1;
              break;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]