Changeset 439:452cf038155c in roaraudio for roard/clients.c


Ignore:
Timestamp:
08/11/08 18:03:43 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added calls to set UID and GID

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/clients.c

    r437 r439  
    108108 
    109109 g_clients[id]->pid = pid; 
     110 
     111 return 0; 
     112} 
     113 
     114int clients_set_uid   (int id, int    uid) { 
     115 if ( g_clients[id] == NULL ) 
     116  return -1; 
     117 
     118 g_clients[id]->uid = uid; 
     119 
     120 return 0; 
     121} 
     122 
     123int clients_set_gid   (int id, int    gid) { 
     124 if ( g_clients[id] == NULL ) 
     125  return -1; 
     126 
     127 g_clients[id]->gid = gid; 
    110128 
    111129 return 0; 
Note: See TracChangeset for help on using the changeset viewer.