Changeset 740 for vendor/current/lib/replace/getpass.c
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified vendor/current/lib/replace/getpass.c ¶
r414 r740 35 35 #endif 36 36 37 #ifndef SIGNAL_CAST38 #define SIGNAL_CAST (RETSIGTYPE (*)(int))39 #endif40 41 37 #ifdef SYSV_TERMIO 42 38 … … 100 96 #endif /* SYSV_TERMIO */ 101 97 102 static void catch_signal(int signum, void (*handler)(int ))98 static void catch_signal(int signum, void (*handler)(int )) 103 99 { 104 100 #ifdef HAVE_SIGACTION … … 132 128 ****************************************************************/ 133 129 134 static void gotintr_sig( void)130 static void gotintr_sig(int signum) 135 131 { 136 132 gotintr = 1; … … 149 145 150 146 /* Catch problematic signals */ 151 catch_signal(SIGINT, SIGNAL_CASTgotintr_sig);147 catch_signal(SIGINT, gotintr_sig); 152 148 153 149 /* Try to write to and read from the terminal if we can. … … 212 208 213 209 /* Catch problematic signals */ 214 catch_signal(SIGINT, SIG NAL_CAST SIG_DFL);210 catch_signal(SIGINT, SIG_DFL); 215 211 216 212 if (gotintr) { 217 printf("Inter upted by signal.\n");213 printf("Interrupted by signal.\n"); 218 214 fflush(stdout); 219 215 exit(1);
Note:
See TracChangeset
for help on using the changeset viewer.