chiark / gitweb /
main: log to the console in a container
[elogind.git] / src / gnome-ask-password-agent.vala
index 46813683afb7edcf12e3d7be1de91059a604830d..4f89a3e6d8bb8f1c70052fe32b12736e82e03110 100644 (file)
@@ -239,10 +239,10 @@ public class MyStatusIcon : StatusIcon {
                                         null);
 
                         OutputStream stream = new UnixOutputStream(to_process, true);
-#if VALA_0_10
-                        stream.write(password, password.length, null);
-#else
+#if VALA_0_12
                         stream.write(password.data, null);
+#else
+                        stream.write(password, password.length, null);
 #endif
                 } catch (Error e) {
                         show_error(e.message);