aboutsummaryrefslogtreecommitdiff
path: root/src/monkey/gdbmi_get_free_vt.c
diff options
context:
space:
mode:
authorSafey A.Halim <safey.allah@gmail.com>2011-03-06 13:18:16 +0000
committerSafey A.Halim <safey.allah@gmail.com>2011-03-06 13:18:16 +0000
commit952d85211f95cc6c25f64c8c9e7e2a13cc9d13c0 (patch)
tree674286456b8800d334e72582964ad870beb730b0 /src/monkey/gdbmi_get_free_vt.c
parent2a6cbd2f8b46dde56b0a3d741a4a8f9bb639c322 (diff)
downloadgnunet-952d85211f95cc6c25f64c8c9e7e2a13cc9d13c0.tar.gz
gnunet-952d85211f95cc6c25f64c8c9e7e2a13cc9d13c0.zip
Codesonar fixes for gdbmi library
Diffstat (limited to 'src/monkey/gdbmi_get_free_vt.c')
-rw-r--r--src/monkey/gdbmi_get_free_vt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/monkey/gdbmi_get_free_vt.c b/src/monkey/gdbmi_get_free_vt.c
index 30e8b355b..25e5e75a7 100644
--- a/src/monkey/gdbmi_get_free_vt.c
+++ b/src/monkey/gdbmi_get_free_vt.c
@@ -92,8 +92,10 @@ int mi_look_for_free_vt()
92 } 92 }
93 93
94 /* Get the state of the console -- in particular, the free VT field */ 94 /* Get the state of the console -- in particular, the free VT field */
95 if (ioctl(console_fd,VT_GETSTATE,&vts)) 95 if (ioctl(console_fd,VT_GETSTATE,&vts)) {
96 close(console_fd);
96 return -2; 97 return -2;
98 }
97 close(console_fd); 99 close(console_fd);
98 100
99 /* We attempt to set our euid to 0; if we were run with euid 0 to 101 /* We attempt to set our euid to 0; if we were run with euid 0 to