ypbind3_binding_dup.c (yp-tools-4.2.2) | : | ypbind3_binding_dup.c (yp-tools-4.2.3) | ||
---|---|---|---|---|
skipping to change at line 22 | skipping to change at line 22 | |||
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 | #ifdef HAVE_CONFIG_H | |||
#include "config.h" | #include "config.h" | |||
#endif | #endif | |||
#if defined(HAVE_YPBIND3) | #if defined(HAVE_YPBIND3) | |||
#include <string.h> | ||||
#include <rpcsvc/yp_prot.h> | #include <rpcsvc/yp_prot.h> | |||
#include "internal.h" | #include "internal.h" | |||
struct ypbind3_binding * | struct ypbind3_binding * | |||
__ypbind3_binding_dup (struct ypbind3_binding *src) | __ypbind3_binding_dup (struct ypbind3_binding *src) | |||
{ | { | |||
#define copy_str(source, dest) \ | #define copy_str(source, dest) \ | |||
if (source != NULL) \ | if (source != NULL) \ | |||
{ \ | { \ | |||
dest = strdup (source); \ | dest = strdup (source); \ | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added |