projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make filesystem size selection generic (for ext2)
[openwrt.git]
/
target
/
utils
/
src
/
trx.c
diff --git
a/target/utils/src/trx.c
b/target/utils/src/trx.c
index
6f9fa41
..
787ffa8
100644
(file)
--- a/
target/utils/src/trx.c
+++ b/
target/utils/src/trx.c
@@
-44,8
+44,6
@@
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
-#include <endian.h>
-#include <byteswap.h>
#if __BYTE_ORDER == __BIG_ENDIAN
#define STORE32_LE(X) bswap_32(X)
#if __BYTE_ORDER == __BIG_ENDIAN
#define STORE32_LE(X) bswap_32(X)
@@
-79,7
+77,7
@@
void usage(void) __attribute__ (( __noreturn__ ));
void usage(void)
{
void usage(void)
{
- fprintf(stderr, "Usage: trx [-o outfile] [-m maxlen] [-a align] [-b offset]
file [file [
file]]\n");
+ fprintf(stderr, "Usage: trx [-o outfile] [-m maxlen] [-a align] [-b offset]
[-f file] [-f file [-f
file]]\n");
exit(EXIT_FAILURE);
}
exit(EXIT_FAILURE);
}
@@
-112,8
+110,9
@@
int main(int argc, char **argv)
in = NULL;
i = 0;
in = NULL;
i = 0;
- while ((c = getopt(argc, argv, "-:o:m:a:b:")) != -1) {
+ while ((c = getopt(argc, argv, "-:o:m:a:b:
f:
")) != -1) {
switch (c) {
switch (c) {
+ case 'f':
case 1:
p->offsets[i++] = STORE32_LE(cur_len);
case 1:
p->offsets[i++] = STORE32_LE(cur_len);
This page took
0.023203 seconds
and
4
git commands to generate.