[OpenWrt-Devel] [PATCH 2/5] service: dump respawn params in the same order as when passed in.

Yousong Zhou yszhou4tech at gmail.com
Sun Jun 14 00:14:44 EDT 2015


Signed-off-by: Yousong Zhou <yszhou4tech at gmail.com>
---
 service/instance.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/service/instance.c b/service/instance.c
index 4ace40b..e89cbc6 100644
--- a/service/instance.c
+++ b/service/instance.c
@@ -917,8 +917,8 @@ void instance_dump(struct blob_buf *b, struct service_instance *in, int verbose)
 
 	if (in->respawn) {
 		void *r = blobmsg_open_table(b, "respawn");
-		blobmsg_add_u32(b, "timeout", in->respawn_timeout);
 		blobmsg_add_u32(b, "threshold", in->respawn_threshold);
+		blobmsg_add_u32(b, "timeout", in->respawn_timeout);
 		blobmsg_add_u32(b, "retry", in->respawn_retry);
 		blobmsg_close_table(b, r);
 	}
-- 
1.7.10.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list