xdrfile-test.c (yp-tools-4.2.2) | : | xdrfile-test.c (yp-tools-4.2.3) | ||
---|---|---|---|---|
skipping to change at line 17 | skipping to change at line 17 | |||
published by the Free Software Foundation. | published by the Free Software Foundation. | |||
This program is distributed in the hope that it will be useful, | This program is distributed in the hope that it will be useful, | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
GNU General Public License for more details. | GNU General Public License for more details. | |||
You should have received a copy of the GNU General Public License | You should have received a copy of the GNU General Public License | |||
along with this program. If not, see <http://www.gnu.org/licenses/>. */ | along with this program. If not, see <http://www.gnu.org/licenses/>. */ | |||
#ifdef HAVE_CONFIG_H | ||||
#include "config.h" | ||||
#endif | ||||
#if defined(HAVE_YPBIND3) | ||||
#include <errno.h> | #include <errno.h> | |||
#include <unistd.h> | #include <unistd.h> | |||
#include <string.h> | #include <string.h> | |||
#include <rpc/rpc.h> | #include <rpc/rpc.h> | |||
#include <rpcsvc/yp_prot.h> | #include <rpcsvc/yp_prot.h> | |||
#include "internal.h" | #include "internal.h" | |||
#define FILE_MODE (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) | #define FILE_MODE (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) | |||
static void | static void | |||
skipping to change at line 131 | skipping to change at line 137 | |||
ypbind3_binding_dump (ypb3); | ypbind3_binding_dump (ypb3); | |||
write_ypbind3_binding (ypb3); | write_ypbind3_binding (ypb3); | |||
printf ("\nRead data\n\n"); | printf ("\nRead data\n\n"); | |||
read_ypbind3_binding (&res); | read_ypbind3_binding (&res); | |||
ypbind3_binding_dump (&res); | ypbind3_binding_dump (&res); | |||
return 0; | return 0; | |||
} | } | |||
#else /* defined(HAVE_YPBIND3) */ | ||||
int | ||||
main (void) | ||||
{ | ||||
return 77; | ||||
} | ||||
#endif | ||||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 6 lines changed or added |