]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - support/sdk/c/blip/driver/vty/vty.h
commit automake build system
[tinyos-2.x.git] / support / sdk / c / blip / driver / vty / vty.h
index 37bcca38468713fc649a872e0243af050f0eb759..0c95dffed17fdb5c4a98c9db164a80a288a27ca3 100644 (file)
@@ -41,7 +41,7 @@
 #define VTY_HEAD                  char __vty_buf[4096]; int __vty_len = 0
 #define VTY_printf(fmt, args...)  __vty_len += snprintf(__vty_buf + __vty_len, 4096 - __vty_len, \
                                                         fmt, ## args)
-#define VTY_flush()               write(fd, __vty_buf, __vty_len); __vty_len = 0
+#define VTY_flush()               __vty_len = write(fd, __vty_buf, __vty_len); __vty_len = 0
 
 #define VTYNAMSIZ 16