[Top][All Lists]

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

Warnings when compiling the Hurd -- ``discards qualifiers from pointer t

From: Thomas Schwinge
Subject: Warnings when compiling the Hurd -- ``discards qualifiers from pointer target''
Date: Thu, 14 Jun 2007 19:11:28 +0200
User-agent: Mutt/1.5.11


../../libdiskfs/boot-start.c: In function ???diskfs_start_bootstrap???:
../../libdiskfs/boot-start.c:223: warning: passing argument 2 of 
???dir_lookup??? discards qualifiers from pointer target type

   101    const char *initname;
   222    err = dir_lookup (root_pt, initname, O_READ, 0,
   223                      &retry, pathbuf, &startup_pt);

/* These names exist only because of MiG deficiencies.
   You should not use them in C source; use the normal C types instead.  */
typedef char string_t [1024];

kern_return_t dir_lookup
        file_t start_dir,
        string_t file_name,
        int flags,
        mode_t mode,
        retry_type *do_retry,
        string_t retry_name,
        mach_port_t *result

routine dir_lookup (
        start_dir: file_t;
        file_name: string_t;
        flags: int;
        mode: mode_t;
        out do_retry: retry_type;
        out retry_name: string_t;
        out result: mach_port_send_t);

Can we teach MIG to output a ``const'' for ``in'' parameters?  Do we want
a ``const_string_t''?  Do we add manual ``(char *)'' casts in such cases?


Attachment: signature.asc
Description: Digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]