X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=mount%2Flibnfs-raw-mount.c;h=0a70d43e0fd6762803aff9c1d7482f8d8c216c5c;hb=a0c4ea7d9f4ad7fab543c064c47be7d334a9ceda;hp=75bdc212bbb887f9f51b7f697a81332ee495fccc;hpb=763cd6e3e2bbb6906186e7ed6a86660276b596b7;p=deb_libnfs.git diff --git a/mount/libnfs-raw-mount.c b/mount/libnfs-raw-mount.c index 75bdc21..0a70d43 100644 --- a/mount/libnfs-raw-mount.c +++ b/mount/libnfs-raw-mount.c @@ -1,3 +1,32 @@ +/* +Copyright (c) 2014, Ronnie Sahlberg +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +The views and conclusions contained in the software and documentation are those +of the authors and should not be interpreted as representing official policies, +either expressed or implied, of the FreeBSD Project. +*/ + /* * Please do not edit this file. * It was generated using rpcgen. @@ -10,6 +39,7 @@ bool_t zdr_fhandle3 (ZDR *zdrs, fhandle3 *objp) { register int32_t *buf; + buf = NULL; if (!zdr_bytes (zdrs, (char **)&objp->fhandle3_val, (u_int *) &objp->fhandle3_len, FHSIZE3)) return FALSE; @@ -20,6 +50,7 @@ bool_t zdr_dirpath (ZDR *zdrs, dirpath *objp) { register int32_t *buf; + buf = NULL; if (!zdr_string (zdrs, objp, MNTPATHLEN)) return FALSE; @@ -30,6 +61,7 @@ bool_t zdr_name (ZDR *zdrs, name *objp) { register int32_t *buf; + buf = NULL; if (!zdr_string (zdrs, objp, MNTNAMLEN)) return FALSE; @@ -40,6 +72,7 @@ bool_t zdr_mountstat3 (ZDR *zdrs, mountstat3 *objp) { register int32_t *buf; + buf = NULL; if (!zdr_enum (zdrs, (enum_t *) objp)) return FALSE; @@ -50,6 +83,7 @@ bool_t zdr_mountlist (ZDR *zdrs, mountlist *objp) { register int32_t *buf; + buf = NULL; if (!zdr_pointer (zdrs, (char **)objp, sizeof (struct mountbody), (zdrproc_t) zdr_mountbody)) return FALSE; @@ -60,6 +94,7 @@ bool_t zdr_mountbody (ZDR *zdrs, mountbody *objp) { register int32_t *buf; + buf = NULL; if (!zdr_name (zdrs, &objp->ml_hostname)) return FALSE; @@ -74,6 +109,7 @@ bool_t zdr_groups (ZDR *zdrs, groups *objp) { register int32_t *buf; + buf = NULL; if (!zdr_pointer (zdrs, (char **)objp, sizeof (struct groupnode), (zdrproc_t) zdr_groupnode)) return FALSE; @@ -84,6 +120,7 @@ bool_t zdr_groupnode (ZDR *zdrs, groupnode *objp) { register int32_t *buf; + buf = NULL; if (!zdr_name (zdrs, &objp->gr_name)) return FALSE; @@ -96,6 +133,7 @@ bool_t zdr_exports (ZDR *zdrs, exports *objp) { register int32_t *buf; + buf = NULL; if (!zdr_pointer (zdrs, (char **)objp, sizeof (struct exportnode), (zdrproc_t) zdr_exportnode)) return FALSE; @@ -106,6 +144,7 @@ bool_t zdr_exportnode (ZDR *zdrs, exportnode *objp) { register int32_t *buf; + buf = NULL; if (!zdr_dirpath (zdrs, &objp->ex_dir)) return FALSE; @@ -120,6 +159,7 @@ bool_t zdr_mountres3_ok (ZDR *zdrs, mountres3_ok *objp) { register int32_t *buf; + buf = NULL; if (!zdr_fhandle3 (zdrs, &objp->fhandle)) return FALSE; @@ -133,6 +173,7 @@ bool_t zdr_mountres3 (ZDR *zdrs, mountres3 *objp) { register int32_t *buf; + buf = NULL; if (!zdr_mountstat3 (zdrs, &objp->fhs_status)) return FALSE; @@ -151,6 +192,7 @@ bool_t zdr_mountstat1 (ZDR *zdrs, mountstat1 *objp) { register int32_t *buf; + buf = NULL; if (!zdr_enum (zdrs, (enum_t *) objp)) return FALSE; @@ -161,6 +203,7 @@ bool_t zdr_fhandle1 (ZDR *zdrs, fhandle1 objp) { register int32_t *buf; + buf = NULL; if (!zdr_opaque (zdrs, objp, FHSIZE)) return FALSE; @@ -171,6 +214,7 @@ bool_t zdr_mountres1_ok (ZDR *zdrs, mountres1_ok *objp) { register int32_t *buf; + buf = NULL; if (!zdr_fhandle1 (zdrs, objp->fhandle)) return FALSE; @@ -181,6 +225,7 @@ bool_t zdr_mountres1 (ZDR *zdrs, mountres1 *objp) { register int32_t *buf; + buf = NULL; if (!zdr_mountstat1 (zdrs, &objp->fhs_status)) return FALSE;