~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_dirname.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:
27
27
#ifdef FN_DEVCHAR
28
28
  if ((pos=(char*)strrchr(name,FN_DEVCHAR)) == 0)
29
29
#endif
30
 
    pos=(char*) name-1;
 
30
    pos=name-1;
31
31
 
32
32
  gpos= pos++;
33
33
  for ( ; *pos ; pos++)                         /* Find last FN_LIBCHAR */
47
47
        )
48
48
      gpos=pos;
49
49
  }
50
 
  return (size_t) (gpos+1-(char*) name);
 
50
  return gpos-name+1;
51
51
}
52
52
 
53
53