* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
+ * along with this program. If not, see <http://www.gnu.org/licenses/>. *
***************************************************************************/
#ifdef HAVE_CONFIG_H
if (flag)
break;
- long long then = 0;
+ int64_t then = 0;
if (i == 1000)
then = timeval_ms();
JTAG_DEBUG("DTR Ready %d nRetry %d", Ready, nRetry);
- long long then = 0;
+ int64_t then = 0;
if (i == 1000)
then = timeval_ms();
JTAG_DEBUG("DTR Data %08x Ready %d nRetry %d",
(unsigned) Data, Ready, nRetry);
- long long then = 0;
+ int64_t then = 0;
if (i == 1000)
then = timeval_ms();
unsigned readiesNum = count;
unsigned bytes = sizeof(*Readies)*readiesNum;
- Readies = (uint8_t *) malloc(bytes);
+ Readies = malloc(bytes);
if (Readies == NULL) {
LOG_ERROR("Out of memory allocating %u bytes", bytes);
return ERROR_FAIL;
uint8_t *ReadyPos = Readies;
while (count--) {
- chain5_fields[0].out_value = (void *)(data++);
+ chain5_fields[0].out_value = (uint8_t *)(data++);
chain5_fields[1].in_value = ReadyPos++;
if (count > 0) {
JTAG_DEBUG("DTR Data %08x Ready %d nRetry %d",
(unsigned) Data, Ready, nRetry);
- long long then = 0;
+ int64_t then = 0;
if (i == 1000)
then = timeval_ms();
if (Ready)
break;
- long long then = 0;
+ int64_t then = 0;
if (i_n == 1000)
then = timeval_ms();