lkml.org 
[lkml]   [2004]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] [Request for inclusion] Filesystem in Userspace
    >> The have been
    >> patches to get rid of the existing casts so please don't introduce new
    >> ones.
    >
    >I vote for explicit casts, makes code more readable.

    And makes it more error prone. Once upon a time, a user wrote:

    ptr = (int *)malloc(...)

    And justified the use of the cast because gcc generated a warning, and I
    replied that if he'd included <stdlib.h> (yeah, user space), the warning would
    be gone, even without a cast. Sigh.



    Jan Engelhardt
    --
    Gesellschaft für Wissenschaftliche Datenverarbeitung
    Am Fassberg, 37077 Göttingen, www.gwdg.de
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:08    [W:3.103 / U:0.200 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site