[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C question



> Going to /usr/src/linux-2.5.66/fs/cramfs and looking at inode.c line 54
> I found:
>                 inode->i_mtime = inode->i_atime = inode->i_ctime = 0;

Most likely you need to change that to this:

    inode->i_mtime = inode->i_atime = inode->i_ctime = (time_t)0;

But that's just a guess...

> I'm much more comfortable with assembler than C, but before I report
> this back to lkml, does C allow three "=" in one line??

That works fine.

    #include <stdio.h>

    void main(void) {
        int foo=0, bar=1, baz=2;

        foo = bar = baz = 6;
        printf("%i %i %i\n", foo, bar, baz);
    }

Try that sometime.  :)

Steve
-- 
steve@silug.org           | Southern Illinois Linux Users Group
(618)398-7360             | See web site for meeting details.
Steven Pritchard          | http://www.silug.org/

-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.