'inline' in sieve/bc_emit.c

From: Paul Boven (no email)
Date: Tue Aug 29 2006 - 07:44:57 EDT

  • Next message: Paul Boven: "Re: Berkeley DB upgrade - 2nd try"

    Hi everyone,

    The file sieve/bc_emit.c contains an inline function declaration in line
    48 (version cyrus-imap-2.2.13):

    inline int write_int (int fd, int x)
    {
         int y=htonl(x);
         return (write(fd, &y, sizeof(int)));
    }

    I would like to suggest turning this into a 'static inline', for
    portability. The current bc_emit.c causes linker problems when building
    it with the Sun Studio compiler. As the function is only used in this
    single c-file, using static should not make a difference.

    Regards, Paul Boven.

    ----
    Cyrus Home Page: http://asg.web.cmu.edu/cyrus
    Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
    List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
    

  • Next message: Paul Boven: "Re: Berkeley DB upgrade - 2nd try"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD