X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fmule-mcpath.c;h=9ab81a6f498024fabebb23abc80b9b187c7be026;hb=9816585ded614fa87be5a2ecfda6dc16c60beb2c;hp=9e10b70cb04a502324f9fd884f2eaf687ec34281;hpb=2e3e3f9ee27fec50f45c282d71eaddf7c673bc56;p=chise%2Fxemacs-chise.git- diff --git a/src/mule-mcpath.c b/src/mule-mcpath.c index 9e10b70..9ab81a6 100644 --- a/src/mule-mcpath.c +++ b/src/mule-mcpath.c @@ -32,7 +32,7 @@ Boston, MA 02111-1307, USA. */ Lisp_Object Qpathname_coding_system = 0; static void -mcpath_encode_code (struct Lisp_Coding_System *cp) +mcpath_encode_code (Lisp_Coding_System *cp) { Lisp_Object coding_system; @@ -46,7 +46,7 @@ static int mule_encode_path_1 (unsigned char *src, unsigned int srcsize, unsigned char *dst, unsigned int dstsize) { - struct Lisp_Coding_System code; + Lisp_Coding_System code; mcpath_encode_code (&code); if (CODE_TYPE (&code) > MULE_AUTOCONV) @@ -76,7 +76,7 @@ static unsigned char * mule_decode_path_1 (unsigned char *src, unsigned char *dst, unsigned int dstsize) { - struct Lisp_Coding_System code; + Lisp_Coding_System code; mcpath_encode_code (&code); if (CODE_TYPE (&code) > MULE_AUTOCONV) @@ -217,7 +217,7 @@ mc_getcwd (unsigned char *null, size_t size) path = (unsigned char *) getcwd ((char *)buffer, MAXPATHLEN); if (path) { - /* here, shoule be (path == buffer). */ + /* here, should be (path == buffer). */ path = (unsigned char *) xmalloc (MC_MAXPATHLEN); /* MSDOS */ if (path) { @@ -239,13 +239,13 @@ unsigned char * mc_getwd (unsigned char path[]) { unsigned char *p; - + p = getwd (path); if (p) { unsigned char buffer[MC_MAXPATHLEN]; int len; - + len = mule_encode_path_1 (path, strlen (path) + 1, buffer, sizeof buffer); if (len > 0) {