Permalink
Browse files

Remove byteswap.h requirement, fix up the simple test script.

  • Loading branch information...
1 parent 00d2c79 commit 291c88b0ed729bac40ac82b1bc7ef240d80385bb @kmdm committed Apr 11, 2013
Showing with 2 additions and 4 deletions.
  1. +1 −3 htczip.c
  2. +1 −1 tests/run.sh
View
@@ -21,13 +21,11 @@
#include <stdlib.h>
#include <string.h>
-#include <bits/byteswap.h>
-
#include "htczip.h"
static inline unsigned short swap(unsigned short s)
{
- return __bswap_constant_16(s);
+ return ((s & 0xff00)>>8) | ((s & 0xff)<<8);
}
static void left_align_mainver_string(char *mainver, int size)
View
@@ -15,7 +15,7 @@ for x in *.zip; do
d=$(echo $x | sed 's/\.zip//')
echo -n "Testing $d..."
rm -f $TMPDIR/*
- if ! $RUUVEAL $d $x $TMPDIR/out.zip &>/dev/null; then
+ if ! $RUUVEAL --device $d $x $TMPDIR/out.zip &>/dev/null; then
echo "failed (ruuveal)."
continue
fi

0 comments on commit 291c88b

Please sign in to comment.