diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2019-07-07 12:29:27 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-07-07 12:33:35 -0700 |
commit | 8f522efe9a963cd3523ea6863f9bd44881cdf6b7 (patch) | |
tree | 10ba28c937e142395bcc4d81580d24fa334e1227 /src/unexelf.c | |
parent | bda8a57141e6cb5455e1246c6ab394791fd6c582 (diff) | |
download | emacs-8f522efe9a963cd3523ea6863f9bd44881cdf6b7.tar.gz |
Remove printmax_t etc.
printmax_t etc. were needed only for platforms that lacked
support for printing intmax_t. These platforms are now so
obsolete that they are no longer practical porting targets.
* src/image.c (gs_load): Fix unlikely buffer overrun
discovered while making these changes. It was introduced in
2011-07-17T00:34:43!eggert@cs.ucla.edu.
* src/lisp.h (printmax_t, uprintmax_t, pMd, pMu, pMx):
Remove. All uses replaced by their standard counterparts
intmax_t, uintmax_t, PRIdMAX, PRIuMAX, PRIxMAX.
Diffstat (limited to 'src/unexelf.c')
-rw-r--r-- | src/unexelf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/unexelf.c b/src/unexelf.c index 6d19bf1fb9f..79b3d444639 100644 --- a/src/unexelf.c +++ b/src/unexelf.c @@ -187,7 +187,8 @@ verify ((! TYPE_SIGNED (ElfW (Half)) && TYPE_MAXIMUM (ElfW (Half)) <= PTRDIFF_MAX); #ifdef UNEXELF_DEBUG -# define DEBUG_LOG(expr) fprintf (stderr, #expr " 0x%jx\n", (uintmax_t) (expr)) +# define DEBUG_LOG(expr) fprintf (stderr, #expr " 0x%"PRIxMAX"\n", \ + (uintmax_t) (expr)) #endif /* Get the address of a particular section or program header entry, |