-#ifndef ATACC
-static __inline__ char *make_cnid_data(const struct stat *st,
- const cnid_t did,
- const char *name, const int len)
-{
- static char start[CNID_HEADER_LEN + MAXPATHLEN + 1];
- char *buf = start +CNID_LEN;
- u_int32_t i;
-
- if (len > MAXPATHLEN)
- return NULL;
-
- memcpy(buf, &st->st_dev, sizeof(st->st_dev));
- buf += sizeof(st->st_dev);
-
- memcpy(buf, &st->st_ino, sizeof(st->st_ino));
- buf += sizeof(st->st_ino);
-
- i = S_ISDIR(st->st_mode)?1:0;
- i = htonl(i);
- memcpy(buf, &i, sizeof(i));
- buf += sizeof(i);
-
- /* did is already in network byte order */
- memcpy(buf, &did, sizeof(did));
- buf += sizeof(did);
-
- memcpy(buf, name, len);
- *(buf + len) = '\0';
-
- return start;
-}
-#else
-extern char *make_cnid_data __P((const struct stat *,const cnid_t ,
- const char *, const int ));
-#endif
+extern unsigned char *make_cnid_data __P((const struct stat *,const cnid_t ,
+ const char *, const size_t ));