Changeset 137 for trunk/src/sh_unix.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/sh_unix.c

    r134 r137  
    9494#include "sh_tiger.h"
    9595#include "sh_prelink.h"
     96#include "sh_pthread.h"
    9697
    9798/* moved here from far below
     
    956957static int tf_add_trusted_user_int(const char * c)
    957958{
    958   register struct passwd *          w;
     959  struct passwd *          w;
    959960  int                           count;
    960961  uid_t                     pwid  = (uid_t)-1;
     
    970971   */
    971972#if defined(HAVE_PTHREAD) && defined (_POSIX_THREAD_SAFE_FUNCTIONS) && defined(HAVE_GETPWNAM_R)
    972   status = sh_getpwnam_r(c, &pwd, buffer, sizeof(buffer), &w);
     973  sh_getpwnam_r(c, &pwd, buffer, sizeof(buffer), &w);
    973974#else
    974975  w = sh_getpwnam(c);
     
    32433244  ShFileType    type;
    32443245  unsigned int  mode;
    3245   char        * name;
    32463246  char        * tmp;
    32473247  char        * tmp2;
     
    35453545
    35463546 
    3547   if (NULL == sh_unix_getUIDname(SH_ERR_ALL, buf.st_uid, theFile->c_owner, USER_MAX+)) {
     3547  if (NULL == sh_unix_getUIDname(SH_ERR_ALL, buf.st_uid, theFile->c_owner, USER_MAX+1)) {
    35483548
    35493549    tmp2 = sh_util_safe_name (theFile->fullpath);
     
    35713571      tmp2 = sh_util_safe_name ((filename == NULL) ?
    35723572                                theFile->fullpath : filename);
    3573       (void) sh_unix_time(theFile->mtime, timestr, sizeof(timestring));
     3573      (void) sh_unix_time(theFile->mtime, timestr, sizeof(timestr));
    35743574      sh_error_handle ((-1), FIL__, __LINE__, 0, MSG_FI_LIST,
    35753575                       theFile->c_mode,
Note: See TracChangeset for help on using the changeset viewer.