diff options
| author | Adriana Kobylak <anoo@us.ibm.com> | 2015-02-18 16:14:28 -0600 |
|---|---|---|
| committer | Adriana Kobylak <anoo@us.ibm.com> | 2015-02-18 16:14:28 -0600 |
| commit | 76ce4aadee1a7a890001affed54a0fb1110b1793 (patch) | |
| tree | 14a358904909e8fe0f631d414333c26de81e5042 /ecc | |
| parent | aa8354ef7ee6606fe32453e3eedce9af8038230a (diff) | |
| download | ffs-76ce4aadee1a7a890001affed54a0fb1110b1793.tar.gz ffs-76ce4aadee1a7a890001affed54a0fb1110b1793.zip | |
Support to compile in 64bit for Ubuntu Little Endian
Diffstat (limited to 'ecc')
| -rw-r--r-- | ecc/Rules.mk | 4 | ||||
| -rw-r--r-- | ecc/src/main.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ecc/Rules.mk b/ecc/Rules.mk index c815cf1..ed3c46d 100644 --- a/ecc/Rules.mk +++ b/ecc/Rules.mk @@ -22,8 +22,8 @@ # permissions and limitations under the License. # # IBM_PROLOG_END_TAG -CFLAGS += -m32 -D_GNU_SOURCE -std=gnu99 -D_FILE_OFFSET_BITS=64 -I$(DEPTH)/.. -iquote.. -LDFLAGS += -L. -L$(DEPTH)/../clib/x86 -m32 +CFLAGS += -D_GNU_SOURCE -std=gnu99 -D_FILE_OFFSET_BITS=64 -I$(DEPTH)/.. -iquote.. +LDFLAGS += -L. -L$(DEPTH)/../clib/x86 OBJS=main.o diff --git a/ecc/src/main.c b/ecc/src/main.c index 7199919..53dbf47 100644 --- a/ecc/src/main.c +++ b/ecc/src/main.c @@ -247,7 +247,7 @@ static int validate_args(args_t * args) args->file = strdup(args->path); assert(args->file != NULL); sprintf((char *)args->file, "%*s", - strlen(args->path) - strlen(ECC_EXT), + (uint32_t)(strlen(args->path) - strlen(ECC_EXT)), args->path); fprintf(stderr, "%s: --output <file> missing, writing " |

