Bug 3894 - utils/eventlogadm.c: "pret" is set but never used
utils/eventlogadm.c: "pret" is set but never used
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
Other Other
: P3 normal
: none
Assigned To: Tim Potter
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2006-06-28 14:29 UTC by Jason Mader
Modified: 2006-06-28 16:56 UTC (History)
0 users

See Also:

Change the use of pret (600 bytes, patch)
2006-06-28 15:21 UTC, Jason Mader
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Mader 2006-06-28 14:29:54 UTC
--- utils/eventlogadm.o ---
cc-1552 c99: WARNING File = utils/eventlogadm.c, Line = 92
  The variable "pret" is set but never used.

        int pret, rcnum;
Comment 1 Jason Mader 2006-06-28 15:16:24 UTC
If "pret" is going to be used, it should be type BOOL to match parse_logentry( ).

Also notice the conditional just past this parse function,

if ( is_eor ) {

maybe the pret should be used in that too?

if ( is_eor && pret )
Comment 2 Jason Mader 2006-06-28 15:21:47 UTC
Created attachment 1995 [details]
Change the use of pret
Comment 3 Jeremy Allison 2006-06-28 16:56:09 UTC
Fixed thanks !