Changeset 170 for trunk/src/slib.c


Ignore:
Timestamp:
Apr 30, 2008, 11:56:45 PM (17 years ago)
Author:
katerina
Message:

Plenty of compiler warnings fixed, SQL query length fixed, doc update.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/slib.c

    r169 r170  
    123123}
    124124
    125 FILE * sl_tracefile_open(char * file, char * mode)
     125FILE * sl_tracefile_open(const char * file, const char * mode)
    126126{
    127127  FILE * xp = NULL;
     
    132132}
    133133
    134 void sl_trace_in(char * str, char * file, int line)
     134void sl_trace_in(const char * str, const char * file, int line)
    135135{
    136136  int    i;
     
    165165}
    166166
    167 void sl_trace_out(char * str, char * file, int line)
     167void sl_trace_out(const char * str, const char * file, int line)
    168168{
    169169  int    i;
     
    200200}
    201201
    202 extern int sh_log_console (char * msg);
     202extern int sh_log_console (const char * msg);
    203203
    204204static int dlogActive = 0;
     
    215215 *      = 3 backtrace
    216216 */
    217 int dlog (int flag, char * file, int line,  const char *fmt, ...)
     217int dlog (int flag, const char * file, int line,  const char *fmt, ...)
    218218{
    219219  va_list     ap;
     
    14961496 * Do nothing if not SUID.
    14971497 */
    1498 int sl_policy_get_user(char * user)
     1498int sl_policy_get_user(const char * user)
    14991499{
    15001500  SL_ENTER(_("sl_policy_get_user"));
     
    24442444
    24452445
    2446 int sl_write (SL_TICKET ticket, void * msg_in, long nbytes)
     2446int sl_write (SL_TICKET ticket, const void * msg_in, long nbytes)
    24472447{
    24482448  long bytewritten;
     
    24502450  int  fd;
    24512451
    2452   char * msg;
     2452  const char * msg;
    24532453
    24542454  SL_ENTER(_("sl_write"));
     
    24612461    SL_IRETURN(fd, _("sl_write"));
    24622462
    2463   msg = (char *) msg_in;
     2463  msg = (const char *) msg_in;
    24642464
    24652465  /* write
     
    24852485}
    24862486
    2487 int sl_write_line (SL_TICKET ticket, void * msg, long nbytes)
     2487int sl_write_line (SL_TICKET ticket, const void * msg, long nbytes)
    24882488{
    24892489  int  status;
     
    25822582
    25832583
    2584 char * sl_trust_errfile()
     2584char * sl_trust_errfile(void)
    25852585{
    25862586  return &tf_path[0];
     
    25882588
    25892589extern uid_t tf_baduid;
    2590 uid_t   sl_trust_baduid()
     2590uid_t   sl_trust_baduid(void)
    25912591{
    25922592  return tf_baduid;
     
    25942594
    25952595extern gid_t tf_badgid;
    2596 gid_t   sl_trust_badgid()
     2596gid_t   sl_trust_badgid(void)
    25972597{
    25982598  return tf_badgid;
     
    26022602static int trust_count = 0;
    26032603
    2604 int  sl_trust_purge_user ()
     2604int  sl_trust_purge_user (void)
    26052605{
    26062606  int i;
Note: See TracChangeset for help on using the changeset viewer.