Changeset 170 for trunk/src/slib.c
- Timestamp:
- Apr 30, 2008, 11:56:45 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/slib.c
r169 r170 123 123 } 124 124 125 FILE * sl_tracefile_open(c har * file,char * mode)125 FILE * sl_tracefile_open(const char * file, const char * mode) 126 126 { 127 127 FILE * xp = NULL; … … 132 132 } 133 133 134 void sl_trace_in(c har * str,char * file, int line)134 void sl_trace_in(const char * str, const char * file, int line) 135 135 { 136 136 int i; … … 165 165 } 166 166 167 void sl_trace_out(c har * str,char * file, int line)167 void sl_trace_out(const char * str, const char * file, int line) 168 168 { 169 169 int i; … … 200 200 } 201 201 202 extern int sh_log_console (c har * msg);202 extern int sh_log_console (const char * msg); 203 203 204 204 static int dlogActive = 0; … … 215 215 * = 3 backtrace 216 216 */ 217 int dlog (int flag, c har * file, int line, const char *fmt, ...)217 int dlog (int flag, const char * file, int line, const char *fmt, ...) 218 218 { 219 219 va_list ap; … … 1496 1496 * Do nothing if not SUID. 1497 1497 */ 1498 int sl_policy_get_user(c har * user)1498 int sl_policy_get_user(const char * user) 1499 1499 { 1500 1500 SL_ENTER(_("sl_policy_get_user")); … … 2444 2444 2445 2445 2446 int sl_write (SL_TICKET ticket, void * msg_in, long nbytes)2446 int sl_write (SL_TICKET ticket, const void * msg_in, long nbytes) 2447 2447 { 2448 2448 long bytewritten; … … 2450 2450 int fd; 2451 2451 2452 c har * msg;2452 const char * msg; 2453 2453 2454 2454 SL_ENTER(_("sl_write")); … … 2461 2461 SL_IRETURN(fd, _("sl_write")); 2462 2462 2463 msg = (c har *) msg_in;2463 msg = (const char *) msg_in; 2464 2464 2465 2465 /* write … … 2485 2485 } 2486 2486 2487 int sl_write_line (SL_TICKET ticket, void * msg, long nbytes)2487 int sl_write_line (SL_TICKET ticket, const void * msg, long nbytes) 2488 2488 { 2489 2489 int status; … … 2582 2582 2583 2583 2584 char * sl_trust_errfile( )2584 char * sl_trust_errfile(void) 2585 2585 { 2586 2586 return &tf_path[0]; … … 2588 2588 2589 2589 extern uid_t tf_baduid; 2590 uid_t sl_trust_baduid( )2590 uid_t sl_trust_baduid(void) 2591 2591 { 2592 2592 return tf_baduid; … … 2594 2594 2595 2595 extern gid_t tf_badgid; 2596 gid_t sl_trust_badgid( )2596 gid_t sl_trust_badgid(void) 2597 2597 { 2598 2598 return tf_badgid; … … 2602 2602 static int trust_count = 0; 2603 2603 2604 int sl_trust_purge_user ( )2604 int sl_trust_purge_user (void) 2605 2605 { 2606 2606 int i;
Note:
See TracChangeset
for help on using the changeset viewer.