diff options
author | Alan Modra <amodra@gmail.com> | 2008-07-30 04:34:58 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2008-07-30 04:34:58 +0000 |
commit | 0af1713e7cd57b52f6c81f73aa58934132198880 (patch) | |
tree | af4b52a6c5f3c8cd570e4f266f019cf552d6f442 /binutils/dlltool.c | |
parent | 22ad7fee2a313665df38ad7177f962f7c13ad0b6 (diff) | |
download | gdb-0af1713e7cd57b52f6c81f73aa58934132198880.zip gdb-0af1713e7cd57b52f6c81f73aa58934132198880.tar.gz gdb-0af1713e7cd57b52f6c81f73aa58934132198880.tar.bz2 |
Silence gcc printf warnings
Diffstat (limited to 'binutils/dlltool.c')
-rw-r--r-- | binutils/dlltool.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/binutils/dlltool.c b/binutils/dlltool.c index 61361b7..505402b 100644 --- a/binutils/dlltool.c +++ b/binutils/dlltool.c @@ -1604,7 +1604,7 @@ flush_page (FILE *f, long *need, int page_addr, int on_page) for (i = 0; i < on_page; i++) { - long needed = need[i]; + unsigned long needed = need[i]; if (needed) needed = ((needed - page_addr) | 0x3000) & 0xffff; @@ -1826,8 +1826,8 @@ gen_exp_file (void) { fprintf (f, "\t.section .edata\n\n"); fprintf (f, "\t%s 0 %s Allways 0\n", ASM_LONG, ASM_C); - fprintf (f, "\t%s 0x%lx %s Time and date\n", ASM_LONG, (long) time(0), - ASM_C); + fprintf (f, "\t%s 0x%lx %s Time and date\n", ASM_LONG, + (unsigned long) time(0), ASM_C); fprintf (f, "\t%s 0 %s Major and Minor version\n", ASM_LONG, ASM_C); fprintf (f, "\t%sname%s %s Ptr to name of dll\n", ASM_RVA_BEFORE, ASM_RVA_AFTER, ASM_C); fprintf (f, "\t%s %d %s Starting ordinal of exports\n", ASM_LONG, d_low_ord, ASM_C); |