Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Evergreen:11.2:Test
OpenIPMI
OpenIPMI-remove_compile_warning.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File OpenIPMI-remove_compile_warning.patch of Package OpenIPMI
--- cmdlang/ipmish.c +++ cmdlang/ipmish.c @@ -382,6 +382,7 @@ out_help(FILE *s, int indent, const char *name, const char *v) { int pos, endpos; + int rv; const char *endword; const char *endspace; @@ -405,7 +406,10 @@ fprintf(s, "\n%*s", indent+2, ""); pos = indent + 2; } - fwrite(v, 1, endword-v, s); + if ((rv = fwrite(v, 1, endword-v, s)) < 0) { + fprintf(stderr, "error writing help information, giving up\n"); + return; + } pos += endword - v; v = endword; } --- libedit/vi.c +++ libedit/vi.c @@ -1000,6 +1000,7 @@ int fd; pid_t pid; int st; + int ret; char tempfile[] = "/tmp/histedit.XXXXXXXXXX"; char *cp; @@ -1012,8 +1013,10 @@ if (fd < 0) return CC_ERROR; cp = el->el_line.buffer; - write(fd, cp, el->el_line.lastchar - cp +0u); - write(fd, "\n", 1); + if((ret = write(fd, cp, el->el_line.lastchar - cp +0u)) < 0) + return CC_ERROR; + if((ret = write(fd, "\n", 1)) < 0) + return CC_ERROR; pid = fork(); switch (pid) { case -1: --- lib/oem_atca.c.orig 2007-09-06 18:48:54.000000000 +0200 +++ lib/oem_atca.c 2008-01-16 16:32:00.000000000 +0100 @@ -4177,7 +4177,7 @@ atca_event_handler(ipmi_domain_t *domain old_state = data[10] & 0xf; new_state = data[11] & 0xf; if ((old_state == 0) || (new_state == 0)) { - if (data[13] != 0) { + if (data[12] != 0) { /* FRU id is not 0, it's an AMC module (or something else the IPMC manages). If the device has gone away or is newly inserted, rescan the SDRs on the IPMC. */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor