versout on Solaris (rpcvcers_t).
* amd/mapc.c (mapc_showtypes): if last map type to print, don't
append newline or comma to it.
* libamu/mount_fs.c (print_nfs_args): cast struct netbuf pointer
to %lx because on Solaris 10 sparc gcc-3.4.3 complains about
casting it to an int (size is different).
A.i386-unknown-freebsd6.0
A.ia64-unknown-linux-rhel4
A.i386-pc-linux-rhel4
+A.sparc-sun-solaris2.10
2005-03-18 Erez Zadok <ezk@cs.sunysb.edu>
+ * conf/transp/transp_tli.c (get_nfs_version): use proper type for
+ versout on Solaris (rpcvcers_t).
+
+ * amd/mapc.c (mapc_showtypes): if last map type to print, don't
+ append newline or comma to it.
+
+ * libamu/mount_fs.c (print_nfs_args): cast struct netbuf pointer
+ to %lx because on Solaris 10 sparc gcc-3.4.3 complains about
+ casting it to an int (size is different).
+
* configure.in, NEWS: prepare for 6.1-rc1 release.
2005-03-17 Erez Zadok <ezk@cs.sunysb.edu>
* SUCH DAMAGE.
*
*
- * $Id: mapc.c,v 1.26 2005/03/10 08:12:34 ezk Exp $
+ * $Id: mapc.c,v 1.27 2005/03/19 03:05:25 ezk Exp $
*
*/
buf[0] = '\0';
for (mt = maptypes; mt < lastmt; mt++) {
strcat(buf, mt->name);
+ if (mt == (lastmt-1))
+ break; /* if last one, don't do strcat's that follow */
l += strlen(mt->name);
if (--i > 0) {
strcat(buf, ", ");
* SUCH DAMAGE.
*
*
- * $Id: transp_tli.c,v 1.30 2005/03/03 02:59:02 ezk Exp $
+ * $Id: transp_tli.c,v 1.31 2005/03/19 03:05:25 ezk Exp $
*
* TLI specific utilities.
* -Erez Zadok <ezk@cs.columbia.edu>
get_nfs_version(char *host, struct sockaddr_in *sin, u_long nfs_version, const char *proto)
{
CLIENT *clnt = NULL;
+#ifdef HAVE_CLNT_CREATE_VERS_TIMED
+ rpcvers_t versout;
+#else /* not HAVE_CLNT_CREATE_VERS_TIMED */
u_long versout;
+#endif /* not HAVE_CLNT_CREATE_VERS_TIMED */
struct timeval tv;
/*
* SUCH DAMAGE.
*
*
- * $Id: mount_fs.c,v 1.47 2005/03/05 07:09:17 ezk Exp $
+ * $Id: mount_fs.c,v 1.48 2005/03/19 03:05:25 ezk Exp $
*
*/
nbp->maxlen, nbp->len,
get_hex_string(nbp->len, nbp->buf));
nbp = nap->syncaddr;
- plog(XLOG_DEBUG, "NA->syncaddr {netbuf} 0x%x", (int) nbp);
+ plog(XLOG_DEBUG, "NA->syncaddr {netbuf} 0x%lx", (long) nbp);
kncp = nap->knconf;
plog(XLOG_DEBUG, "NA->knconf->semantics %lu", (u_long) kncp->knc_semantics);
plog(XLOG_DEBUG, "NA->knconf->protofmly \"%s\"", kncp->knc_protofmly);