Ignore:
Timestamp:
Nov 14, 2012, 12:59:34 PM (12 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to 3.6.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified vendor/current/lib/replace/getpass.c

    r414 r740  
    3535#endif
    3636
    37 #ifndef SIGNAL_CAST
    38 #define SIGNAL_CAST (RETSIGTYPE (*)(int))
    39 #endif
    40 
    4137#ifdef SYSV_TERMIO
    4238
     
    10096#endif /* SYSV_TERMIO */
    10197
    102 static void catch_signal(int signum,void (*handler)(int ))
     98static void catch_signal(int signum, void (*handler)(int ))
    10399{
    104100#ifdef HAVE_SIGACTION
     
    132128****************************************************************/
    133129
    134 static void gotintr_sig(void)
     130static void gotintr_sig(int signum)
    135131{
    136132        gotintr = 1;
     
    149145
    150146        /* Catch problematic signals */
    151         catch_signal(SIGINT, SIGNAL_CAST gotintr_sig);
     147        catch_signal(SIGINT, gotintr_sig);
    152148
    153149        /* Try to write to and read from the terminal if we can.
     
    212208
    213209        /* Catch problematic signals */
    214         catch_signal(SIGINT, SIGNAL_CAST SIG_DFL);
     210        catch_signal(SIGINT, SIG_DFL);
    215211
    216212        if (gotintr) {
    217                 printf("Interupted by signal.\n");
     213                printf("Interrupted by signal.\n");
    218214                fflush(stdout);
    219215                exit(1);
Note: See TracChangeset for help on using the changeset viewer.