* [Buildroot] [PATCH 1/1] package/sp-oops-extract: consolidate use of stdint types
@ 2016-01-04 14:23 Doug Kehn
2016-01-04 15:09 ` Luca Ceresoli
0 siblings, 1 reply; 2+ messages in thread
From: Doug Kehn @ 2016-01-04 14:23 UTC (permalink / raw)
To: buildroot
Change u_int*_t to uint*_t for compatibility with a larger number of C
libraries.
This patch resolves 2016-01-02 auto-build failure. This patch has also
been submitted upstream (ptxdist at pengutronix.de).
Signed-off-by: Doug Kehn <rdkehn@yahoo.com>
---
| 33 +++++++++++++++++++++++
1 file changed, 33 insertions(+)
create mode 100644 package/sp-oops-extract/0002-stdint-cleanup.patch
--git a/package/sp-oops-extract/0002-stdint-cleanup.patch b/package/sp-oops-extract/0002-stdint-cleanup.patch
new file mode 100644
index 0000000..255fe8a
--- /dev/null
+++ b/package/sp-oops-extract/0002-stdint-cleanup.patch
@@ -0,0 +1,33 @@
+consolidate use of stdint types
+
+Change u_int*_t to uint*_t for compatibility with a larger number of C
+libraries.
+
+Signed-off-by: Doug Kehn <rdkehn@yahoo.com>
+
+Index: sp-oops-extract-0.0.7-1/src/oopslog.c
+===================================================================
+--- sp-oops-extract-0.0.7-1.orig/src/oopslog.c
++++ sp-oops-extract-0.0.7-1/src/oopslog.c
+@@ -64,8 +64,8 @@ static int try_to_check_for_bad_blocks(v
+
+ int main(const int argc, const char *argv[])
+ {
+- u_int32_t *count, maxcount = 0xffffffff;
+- u_int32_t *magic_ptr, magic_value = 0x5d005d00;
++ uint32_t *count, maxcount = 0xffffffff;
++ uint32_t *magic_ptr, magic_value = 0x5d005d00;
+
+ unsigned char *charbuf;
+ unsigned long size;
+@@ -137,8 +137,8 @@ int main(const int argc, const char *arg
+ errx(-1, "%s is something weird", device);
+
+ charbuf = buf;
+- count = (u_int32_t *) buf;
+- magic_ptr = (u_int32_t *) (buf + sizeof(u_int32_t));
++ count = (uint32_t *) buf;
++ magic_ptr = (uint32_t *) (buf + sizeof(uint32_t));
+
+ for (i = 0; i < (size / OOPS_PAGE_SIZE); i++) {
+ pread(fd, buf, OOPS_PAGE_SIZE, i * OOPS_PAGE_SIZE);
--
2.6.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] package/sp-oops-extract: consolidate use of stdint types
2016-01-04 14:23 [Buildroot] [PATCH 1/1] package/sp-oops-extract: consolidate use of stdint types Doug Kehn
@ 2016-01-04 15:09 ` Luca Ceresoli
0 siblings, 0 replies; 2+ messages in thread
From: Luca Ceresoli @ 2016-01-04 15:09 UTC (permalink / raw)
To: buildroot
Dear Doug,
Doug Kehn wrote:
> Change u_int*_t to uint*_t for compatibility with a larger number of C
> libraries.
>
> This patch resolves 2016-01-02 auto-build failure. This patch has also
> been submitted upstream (ptxdist at pengutronix.de).
Adding the URL of the build failure webpage is a good practice. It
allows reviewers to have a look at the problem you're fixing.
See for example:
https://git.busybox.net/buildroot/commit/?id=a5ec50b2cc874a2e8a711792d673f0c51b5142b2
--
Luca
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-04 15:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-04 14:23 [Buildroot] [PATCH 1/1] package/sp-oops-extract: consolidate use of stdint types Doug Kehn
2016-01-04 15:09 ` Luca Ceresoli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox