Changeset 1321


Ignore:
Timestamp:
Mar 21, 2004, 7:22:08 AM (21 years ago)
Author:
bird
Message:

#991: done.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/testcase/libc/miscinnotek/pathrewrite.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1320 r1321  
    3333#include <string.h>
    3434#include <stdio.h>
    35 #include <unistd.h>
     35#include <errno.h>
     36#include <stdlib.h>
     37
    3638
    3739/*******************************************************************************
    3840*   Global Variables                                                           *
    3941*******************************************************************************/
    40 char                szEtcTo[256];
     42/** buffer for dynamically getting the right ETC. */
     43char                gszEtcTo[256];
    4144/** rewrite the /etc directory. */
    4245__LIBC_PATHREWRITE  gEtcRule =
     
    4447    __LIBC_PRWF_TYPE_DIR | __LIBC_PRWF_CASE_SENSITIVE,
    4548    "/etc",  4,
    46     &szEtcTo[0], 0
     49    &gszEtcTo[0], 0
    4750};
    4851
     
    6265    int     rcRet = 0;
    6366    FILE    *pFile;
    64     int     rc;
    6567
    6668    /*
     
    9698    }
    9799
    98     strcpy(gEtcRule.pszTo, getenv("ETC"));
     100    strcpy(&gszEtcTo[0], getenv("ETC"));
    99101    gEtcRule.cchTo = strlen(gEtcRule.pszTo);
    100102    if (__libc_PathRewriteAdd(&gEtcRule, 1))
     
    129131        printf("pathrewrite: Successfully executed all tests\n");
    130132    else
    131         printf("pathrewrite: %d test failes\n", rcRet);
     133        printf("pathrewrite: %d tests failed\n", rcRet);
    132134    return rcRet;
    133135}
Note: See TracChangeset for help on using the changeset viewer.