Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Update
gpart
gpart-0.1h.log.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gpart-0.1h.log.patch of Package gpart
gpart.c:72: warning: built-in function 'log' declared as non-function --- src/gpart.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) Index: src/gpart.c =================================================================== --- src/gpart.c.orig +++ src/gpart.c @@ -69,7 +69,7 @@ int f_skiperrors = 1, berrno = 0; int (*boundary_fun)(disk_desc *,s64_t); unsigned long increment = 'h', gc = 0, gh = 0, gs = 0; s64_t skipsec = 0, maxsec = 0; -FILE *log = 0; +FILE *mylogfile; @@ -125,26 +125,26 @@ void pr(int type,char *fmt,...) case FATAL : g_mod_deleteall(); if (! f_quiet) fprintf(stderr,EM_FATALERROR,msg); - if (log) + if (mylogfile) { - fprintf(log,EM_FATALERROR,msg); - fclose(log); + fprintf(mylogfile,EM_FATALERROR,msg); + fclose(mylogfile); } exit(1); case ERROR : if (! f_quiet) fprintf(stderr,EM_SIMPLEERROR,msg); - if (log) fprintf(log,EM_SIMPLEERROR,msg); + if (mylogfile) fprintf(mylogfile,EM_SIMPLEERROR,msg); break; case WARN : if (! f_quiet) fprintf(stderr,EM_WARNING,msg); - if (log) fprintf(log,EM_WARNING,msg); + if (mylogfile) fprintf(mylogfile,EM_WARNING,msg); break; case MSG : if (! f_quiet) fputs(msg,stdout); fflush(stdout); - if (log) fputs(msg,log); + if (mylogfile) fputs(msg,mylogfile); break; } - if (log) fflush(log); + if (mylogfile) fflush(mylogfile); } @@ -1750,8 +1750,8 @@ int main(int ac,char **av) } break; case 'l' : - if (log) fclose(log); - if ((log = fopen(optarg,"w")) == 0) + if (mylogfile) fclose(mylogfile); + if ((mylogfile = fopen(optarg,"w")) == 0) pr(FATAL,EM_OPENLOG,optarg); break; case 'L' : @@ -1831,7 +1831,7 @@ int main(int ac,char **av) } } free_disk_desc(d); - if (log) fclose(log); + if (mylogfile) fclose(mylogfile); return (f_check ? no_of_incons : 0); }
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