[BACK]Return to common.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / rdist

Diff for /src/usr.bin/rdist/common.c between version 1.28 and 1.29

version 1.28, 2014/07/05 06:18:58 version 1.29, 2014/07/05 06:55:29
Line 45 
Line 45 
  * Variables common to both client and server   * Variables common to both client and server
  */   */
 char                    host[MAXHOSTNAMELEN];   /* Name of this host */  char                    host[MAXHOSTNAMELEN];   /* Name of this host */
 UID_T                   userid = (UID_T)-1;     /* User's UID */  uid_t                   userid = (uid_t)-1;     /* User's UID */
 GID_T                   groupid = (GID_T)-1;    /* User's GID */  gid_t                   groupid = (gid_t)-1;    /* User's GID */
 char                   *homedir = NULL;         /* User's $HOME */  char                   *homedir = NULL;         /* User's $HOME */
 char                   *locuser = NULL;         /* Local User's name */  char                   *locuser = NULL;         /* Local User's name */
 int                     isserver = FALSE;       /* We're the server */  int                     isserver = FALSE;       /* We're the server */
Line 430 
Line 430 
  * Get the user name for the uid.   * Get the user name for the uid.
  */   */
 char *  char *
 getusername(UID_T uid, char *file, opt_t opts)  getusername(uid_t uid, char *file, opt_t opts)
 {  {
         static char buf[100];          static char buf[100];
         static UID_T lastuid = (UID_T)-1;          static uid_t lastuid = (uid_t)-1;
         struct passwd *pwd = NULL;          struct passwd *pwd = NULL;
   
         /*          /*
Line 472 
Line 472 
  * Get the group name for the gid.   * Get the group name for the gid.
  */   */
 char *  char *
 getgroupname(GID_T gid, char *file, opt_t opts)  getgroupname(gid_t gid, char *file, opt_t opts)
 {  {
         static char buf[100];          static char buf[100];
         static GID_T lastgid = (GID_T)-1;          static gid_t lastgid = (gid_t)-1;
         struct group *grp = NULL;          struct group *grp = NULL;
   
         /*          /*

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29