bugmake - Bugs: bug #16473, Improper typedef of bsd_signal

 
 

bug #16473: Improper typedef of bsd_signal

Submitter:  Jerker Bäck <jerker_back>
Submitted:  Mon 01 May 2006 12:33:08 AM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  3.81 Operating System:  Any
Fixed Release:  3.82 Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 07 Jun 2009 07:29:06 PM UTC, comment #1: 

Fixed.

Paul D. Smith <psmith>
Group administrator
Mon 01 May 2006 12:33:08 AM UTC, original submission:  

The signal function pointer typedef in
main.c(519) typedef RETSIGTYPE (*bsd_signal_ret_t) ();

will issue:
warning C4113: 'bsd_signal_ret_t' differs in parameter lists from 'sighandler_t'

This is because sighandler_t is defined in MS C-lib signal.h as:
typedef void (__cdecl * sighandler_t)(int);

I don't know if this is different in other C libs but I find it unlikely. GLIBC defines it in signal.h as:
typedef void (*__sighandler_t) (int);

Solution:
main.c(519) typedef RETSIGTYPE (*bsd_signal_ret_t) (int);

Jerker Bäck <jerker_back>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-07-28 psmith Fixed Release4.0 3.82
    2009-06-07 psmith StatusNone Fixed
        Assigned toNone psmith
        Open/ClosedOpen Closed
        Fixed ReleaseNone 4.0

    Back to the top

    Powered by Savane 3.13-3cd0.
    Corresponding source code