changeset 286:92cc938b59a2

some minor cleanups to the uClinux parts
author Matt Johnston <matt@ucc.asn.au>
date Wed, 08 Mar 2006 13:48:05 +0000
parents 1b9e69c058d2
children b72f98803e46
files scp.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/scp.c	Wed Mar 08 13:23:58 2006 +0000
+++ b/scp.c	Wed Mar 08 13:48:05 2006 +0000
@@ -166,8 +166,8 @@
 	close(reserved[0]);
 	close(reserved[1]);
 
-    // uClinux needs to build the args here before vforking,
-    // otherwise we do it later on.
+    /* uClinux needs to build the args here before vforking,
+       otherwise we do it later on. */
 #ifdef __uClinux__
 	args.list[0] = ssh_program;
 	if (remuser != NULL)
@@ -212,17 +212,17 @@
 #ifdef __uClinux__
 	/* clean up command */
 	/* pop cmd */
-	free(args->list[--args->num]);
+	xfree(args->list[--args->num]);
 	args->list[args->num]=NULL;
 	/* pop host */
-	free(args->list[--args->num-1]);
+	xfree(args->list[--args->num-1]);
 	args->list[args->num]=NULL;
 	/* pop user */
 	if (remuser != NULL) {
-		free(args->list[--args->num-1]);
+		xfree(args->list[--args->num-1]);
 		args->list[args->num]=NULL;
 	}
-#endif /* __uClinux__
+#endif /* __uClinux__ */
 	  
 	/* Parent.  Close the other side, and return the local side. */
 	close(pin[0]);