2003-05-04 14:28:33

by Chuck Ebbert

[permalink] [raw]
Subject: compile fix for IBM PCI hotplug driver (linux 2.4.21rc1-ac4)


> if(create_file_name (slot_cur, buf)==0)

Wow. Three whitespace violations on one line:

- no space after 'if'
- space between function and args
- no space around '==' operator

I know you didn't write that, I just had to comment because it almost
hurts to look at it...

>- snprintf (slot_cur->hotplug_slot->name, 30, "%s", );
>+ snprintf (slot_cur->hotplug_slot->name, 30, "%s" );


Doesn't this need a fourth parameter here instead of just
removing the comma?



2003-05-04 18:24:22

by Geller Sandor

[permalink] [raw]
Subject: Re: compile fix for IBM PCI hotplug driver (linux 2.4.21rc1-ac4)

On Sun, 4 May 2003, Chuck Ebbert wrote:

>
> > if(create_file_name (slot_cur, buf)==0)
>
> Wow. Three whitespace violations on one line:
>
> - no space after 'if'
> - space between function and args
> - no space around '==' operator
>
> I know you didn't write that, I just had to comment because it almost
> hurts to look at it...
>
> >- snprintf (slot_cur->hotplug_slot->name, 30, "%s", );
> >+ snprintf (slot_cur->hotplug_slot->name, 30, "%s" );
>
>
> Doesn't this need a fourth parameter here instead of just
> removing the comma?

Yes, Andreas Haumer fixed the compile problems correctly in his post.

Geller Sandor <[email protected]>