Changeset 137 for trunk/src/trustfile.c


Ignore:
Timestamp:
Oct 28, 2007, 1:17:58 AM (17 years ago)
Author:
rainer
Message:

Fix compile errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/trustfile.c

    r134 r137  
    103103#define SH_NEED_PWD_GRP 1
    104104#include "sh_static.h"
    105 #define SH_GRBUF_SIZE 4096
    106 #define SH_PWBUF_SIZE 4096
     105#include "sh_pthread.h"
    107106
    108107#else
     
    411410int isingrp(gid_t grp, uid_t *ulist)
    412411{
    413   register struct passwd *w;    /* info about group member */
     412  struct passwd *w;             /* info about group member */
    414413  register uid_t *u;            /* points to current ulist member */
    415414  register char **p;            /* points to current group member */
    416   register struct group *g;     /* pointer to group information */
     415  struct group *g;              /* pointer to group information */
    417416 
    418417#if defined(HAVE_PTHREAD) && defined (_POSIX_THREAD_SAFE_FUNCTIONS) && defined(HAVE_GETGRGID_R)
     
    494493int onlytrustedingrp(gid_t grp, uid_t *ulist)
    495494{
    496   register struct passwd *w;    /* info about group member */
     495  struct passwd *w;             /* info about group member */
    497496  register uid_t *u;            /* points to current ulist member */
    498497  register char **p;            /* points to current group member */
    499   register struct group *g;     /* pointer to group information */
     498  struct group *g;              /* pointer to group information */
    500499  register int flag = -1;       /* group member found */
    501500
     
    503502  struct group    gr;
    504503  char            buffer[SH_GRBUF_SIZE];
    505   struct group    pw;
     504  struct passwd   pw;
    506505  char            pbuffer[SH_PWBUF_SIZE];
    507506#endif
Note: See TracChangeset for help on using the changeset viewer.