~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_getwd.c

  • Committer: Jay Pipes
  • Date: 2008-07-17 21:18:07 UTC
  • mto: This revision was merged to the branch mainline in revision 182.
  • Revision ID: jay@mysql.com-20080717211807-k9cwb1m2wi7ys9fq
Phase 6 - Remove DBUG from mysys

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
int my_getwd(char * buf, size_t size, myf MyFlags)
43
43
{
44
44
  char * pos;
45
 
  DBUG_ENTER("my_getwd");
46
 
  DBUG_PRINT("my",("buf: 0x%lx  size: %u  MyFlags %d",
47
 
                   (long) buf, (uint) size, MyFlags));
48
45
 
49
46
  if (curr_dir[0])                              /* Current pos is saved here */
50
47
    VOID(strmake(buf,&curr_dir[0],size-1));
81
78
    }
82
79
    (void) strmake(&curr_dir[0],buf, (size_t) (FN_REFLEN-1));
83
80
  }
84
 
  DBUG_RETURN(0);
 
81
  return(0);
85
82
} /* my_getwd */
86
83
 
87
84
 
95
92
#if defined(VMS)
96
93
  char buff[FN_REFLEN];
97
94
#endif
98
 
  DBUG_ENTER("my_setwd");
99
 
  DBUG_PRINT("my",("dir: '%s'  MyFlags %d", dir, MyFlags));
100
95
 
101
96
  start=(char *) dir;
102
97
  if (! dir[0] || (dir[0] == FN_LIBCHAR && dir[1] == 0))
134
129
    else
135
130
      curr_dir[0]='\0';                         /* Don't save name */
136
131
  }
137
 
  DBUG_RETURN(res);
 
132
  return(res);
138
133
} /* my_setwd */
139
134
 
140
135