~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_getwd.c

  • Committer: Brian Aker
  • Date: 2008-08-10 17:18:41 UTC
  • mfrom: (287.3.13 codestyle)
  • Revision ID: brian@tangent.org-20080810171841-pkvi2ky94wbd0nt5
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
{
89
89
  int res;
90
90
  size_t length;
91
 
  char *start, *pos;
 
91
  const char *start;
 
92
  char *pos;
92
93
#if defined(VMS)
93
94
  char buff[FN_REFLEN];
94
95
#endif
95
96
 
96
 
  start=(char *) dir;
 
97
  start= dir;
97
98
  if (! dir[0] || (dir[0] == FN_LIBCHAR && dir[1] == 0))
98
99
    dir=FN_ROOTDIR;
99
100
#ifdef VMS
108
109
    dir=buff;
109
110
  }
110
111
#endif /* VMS */
111
 
  if ((res=chdir((char*) dir)) != 0)
 
112
  if ((res=chdir(dir)) != 0)
112
113
  {
113
114
    my_errno=errno;
114
115
    if (MyFlags & MY_WME)