aboutsummaryrefslogtreecommitdiffstats
path: root/src/security.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-11-18 22:28:51 +0100
committerMattias Andrée <maandree@operamail.com>2013-11-18 22:28:51 +0100
commit1a57451434b9941ea5497dba9017b715826608fd (patch)
tree4aa3e6d7aea29d91012e2822a78ccf743b060716 /src/security.c
parentm (diff)
downloadlibpassphrase-1a57451434b9941ea5497dba9017b715826608fd.tar.gz
libpassphrase-1a57451434b9941ea5497dba9017b715826608fd.tar.bz2
libpassphrase-1a57451434b9941ea5497dba9017b715826608fd.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/security.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/security.c b/src/security.c
index a273cf0..b645b32 100644
--- a/src/security.c
+++ b/src/security.c
@@ -16,6 +16,20 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <unistd.h>
+#include <sys/stat.h>
+#include <stdio.h>
+#include <termios.h>
+#include <fcntl.h>
+#include <signal.h>
+#include <stropts.h>
+#if defined(OWN_VCSA) || defined(OWN_VCS)
+#include <string.h>
+#include <linux/vt.h>
+#endif
+
+#include "config.h"
+
#include "security.h"
@@ -80,7 +94,7 @@ void secure_tty(gid_t group)
* @param group The group, -1 for unchanged
* @param with_fail Abort on failure
*/
-void chown_tty(uid_t owner, gid_t group, int with_fail)
+void chown_tty(uid_t owner, gid_t group, char with_fail)
{
#if defined(OWN_VCSA) || defined(OWN_VCS)
struct vt_stat vtstat;