[DRBD-cvs] user by lars; real fix for sh-devices; sorry for the i...

drbd-user@lists.linbit.com drbd-user@lists.linbit.com
Wed, 21 Apr 2004 11:10:25 +0200 (CEST)


DRBD CVS committal

Author  : lars
Project : drbd
Module  : user

Dir     : drbd/user


Modified Files:
      Tag: rel-0_7-branch
	drbdadm_main.c 


Log Message:
real fix for sh-devices; sorry for the incomplete last one
===================================================================
RCS file: /var/lib/cvs/drbd/drbd/user/Attic/drbdadm_main.c,v
retrieving revision 1.1.2.42
retrieving revision 1.1.2.43
diff -u -3 -r1.1.2.42 -r1.1.2.43
--- drbdadm_main.c	21 Apr 2004 09:04:04 -0000	1.1.2.42
+++ drbdadm_main.c	21 Apr 2004 09:10:20 -0000	1.1.2.43
@@ -199,14 +199,9 @@
 {
   struct d_resource *res,*t;
   for_each_resource(res,t,config) {
-    printf("%s",esc(res->name));
-    res=res->next;
-    if(res != config) printf(" ");
-    else {
-      printf("\n");
-      break;
-    }
+    printf("%s ",esc(res->name));
   }
+  printf("\n");
 
   return 0;
 }