The unified diff between revisions [dd57a0c1..] and [10a1f614..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'scpmisc.c'

#
#
# patch "scpmisc.c"
#  from [c9c27aeab7ef134ff825f51efcd57e7cec8acfd2]
#    to [00d97ddb2b29d4855c763b180172f59a2e159ba9]
#
============================================================
--- scpmisc.c	c9c27aeab7ef134ff825f51efcd57e7cec8acfd2
+++ scpmisc.c	00d97ddb2b29d4855c763b180172f59a2e159ba9
@@ -49,12 +49,12 @@ xmalloc(size_t size)
 	void *ptr;

 	if (size == 0) {
-		fprintf(stderr, "xmalloc: zero size\n");
+		printf( "xmalloc: zero size\n");
 		exit(EXIT_FAILURE);
 	}
 	ptr = malloc(size);
 	if (ptr == NULL) {
-		fprintf(stderr, "xmalloc: out of memory (allocating %lu bytes)\n", (u_long) size);
+		printf( "xmalloc: out of memory (allocating %lu bytes)\n", (u_long) size);
 		exit(EXIT_FAILURE);
 	}
 	return ptr;
@@ -66,7 +66,7 @@ xrealloc(void *ptr, size_t new_size)
 	void *new_ptr;

 	if (new_size == 0) {
-		fprintf(stderr, "xrealloc: zero size\n");
+		printf( "xrealloc: zero size\n");
 		exit(EXIT_FAILURE);
 	}
 	if (ptr == NULL)
@@ -74,7 +74,7 @@ xrealloc(void *ptr, size_t new_size)
 	else
 		new_ptr = realloc(ptr, new_size);
 	if (new_ptr == NULL) {
-		fprintf(stderr, "xrealloc: out of memory (new_size %lu bytes)\n", (u_long) new_size);
+		printf( "xrealloc: out of memory (new_size %lu bytes)\n", (u_long) new_size);
 		exit(EXIT_FAILURE);
 	}
 	return new_ptr;
@@ -84,7 +84,7 @@ xfree(void *ptr)
 xfree(void *ptr)
 {
 	if (ptr == NULL) {
-		fprintf(stderr, "xfree: NULL pointer given as argument\n");
+		printf( "xfree: NULL pointer given as argument\n");
 		exit(EXIT_FAILURE);
 	}
 	free(ptr);