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 Priority:  5 - 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

Post a Comment

Add a New Comment Rich Markup
   

Discussion

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>

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

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

    Votes

    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.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

    History

    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.16-a7ba.
    Corresponding source code