Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 190043 Details for
Bug 268124
New ebuild: tiny watchdog : wdd
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix some warnings
warning.patch (text/plain), 774 bytes, created by
Bertrand Jacquin
on 2009-05-01 15:33:19 UTC
(
hide
)
Description:
fix some warnings
Filename:
MIME Type:
Creator:
Bertrand Jacquin
Created:
2009-05-01 15:33:19 UTC
Size:
774 bytes
patch
obsolete
>--- wdd.c.ori 2007-07-18 18:03:18.000000000 +0200 >+++ wdd.c 2007-07-18 18:06:11.000000000 +0200 >@@ -3,9 +3,13 @@ > */ > > #include <stdio.h> >+#include <stdlib.h> > #include <sys/types.h> > #include <sys/stat.h> > #include <fcntl.h> >+#include <unistd.h> >+#include <sys/wait.h> >+#include <string.h> > > const char dev_wd_str[] = "/dev/watchdog"; > const char root_str[] = "/"; >@@ -18,7 +22,7 @@ > static inline void try_malloc() { > void *heap; > >- heap = (void*)sbrk(NULL); >+ heap = (void*)sbrk(0); > if (brk(heap + 4096)) > exit(1); > memset(heap, 0, 4096); >@@ -52,7 +56,7 @@ > void *heap; > int ret; > >- heap = (void*)sbrk(NULL); >+ heap = (void*)sbrk(0); > if (brk(heap + sizeof (struct stat))) > exit(1); > memset(heap, 0, sizeof (struct stat));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 268124
:
190041
| 190043 |
190044
|
190046
|
190047