Darren Reed wrote: > Location: inetd.c 302-327 > Type: T > Priority: 1 > Comment: first, will scf_instance_destroy(NULL) crash inetd? > scf_instance_destroy() just returns if argument is NULL. > The man page doesn't explicitly state this is ok, so one would > assume not. Additionally. rather than do line 321, put this at > 312 and make 320 just be "if (ret != 0)". > done > Location: inetd.c 336-347 > Type: T > Priority: 2 > Comment: Restructuring this function to eliminate the goto > appears easily possible, although it will require the use of "else". > done > Location: inetd.c 369-381 > Type: T > Priority: 2 > Comment: same as for lines 336-347. > done > Location: ipfd.c 407 > Type: T > Priority: 3 > Comment: Line is redundant with 401. > removed > Location: ipfd.c 508-533 > Type: T > Priority: 2 > Comment: Rather than do "if()-else", consider just putting > one of the conditions with the if() and have the other being > the default so that the lint hint at 533 can be removed. > done > Location: ipfd.c 539 > Type: T > Priority: 2 > Comment: boolean_t's should be initialised with either > B_FALSE or B_TRUE, not an integer. > nice catch _______________________________________________ networking-discuss mailing list [email protected]
- Re: [networking-discuss] [smf-discus... Tony Nguyen
- Re: [networking-discuss] [smf-discus... Tony Nguyen
- Re: [networking-discuss] [smf-discuss] Code review request... David Bustos
- Re: [networking-discuss] [smf-discuss] Code review re... Tony Nguyen
- Re: [networking-discuss] [smf-discuss] Code revie... David Bustos
- Re: [networking-discuss] [smf-discuss] Code r... Tony Nguyen
- Re: [networking-discuss] [smf-discuss] Co... David Bustos
- Re: [networking-discuss] [smf-discus... Tony Nguyen
- [networking-discuss] Code review request - Solaris host-ba... Tony Nguyen
- Re: [networking-discuss] Code review request - Solari... Darren Reed
- Re: [networking-discuss] [smf-discuss] Code revie... Tony Nguyen
- Re: [networking-discuss] [smf-discuss] Code r... Darren Reed
- Re: [networking-discuss] [smf-discuss] Co... Tony Nguyen
- Re: [networking-discuss] [smf-discuss] Code review re... Tony Nguyen
- Re: [networking-discuss] [smf-discuss] Code revie... David Powell
- Re: [networking-discuss] [smf-discuss] Code r... Tony Nguyen
- Re: [networking-discuss] [smf-discuss] Co... Tony Nguyen
- Re: [networking-discuss] [smf-discus... David Powell
- Re: [networking-discuss] [smf-discus... Peter Memishian
- Re: [networking-discuss] [smf-discus... Tony Nguyen
- Re: [networking-discuss] [smf-discus... Sebastien Roy
