diff -Naur /tmp/ktsuss-1.2/src/auth.c ./src/auth.c
--- /tmp/ktsuss-1.2/src/auth.c	2007-09-04 01:25:08.000000000 +0200
+++ ./src/auth.c	2007-09-11 15:52:38.000000000 +0200
@@ -31,15 +31,15 @@
 /* Thanks to euklid for the #ifdef __linux__, so now it works in bsd too ;) */
 
 
+#ifdef __linux__
+	#define _XOPEN_SOURCE
+	#include <shadow.h>
+#endif
 #include <stdio.h>
 #include <sys/types.h>
 #include <unistd.h>
 #include <stdlib.h>
 #include <pwd.h>
-#ifdef __linux__
-	#include <shadow.h>
-	#define _XOPEN_SOURCE
-#endif
 #include <fcntl.h>
 #include <string.h>
 #include <sys/stat.h>
@@ -85,9 +85,10 @@
 	char *encrypted, *real_name;
 	struct passwd *pw;
 	struct spwd *sp;
-	int i=0;
-	if((pw = getpwnam(username))==NULL)
-		gtk_exit(1+0*fprintf(stderr, "Invalid username\n"));
+	if((pw = getpwnam(username))==NULL){
+		fprintf(stderr, "Invalid username\n");
+		exit(1);
+	}
 #ifdef __linux__
 	sp = getspnam (pw->pw_name);
 	if(sp)
@@ -101,15 +102,19 @@
 				argv[0]=real_name;
 				execvp(real_name, argv);
 			}
-			else
-				gtk_exit(2+0*fprintf(stderr, "Command not found\n"));
+			else{
+				fprintf(stderr, "Command not found\n");
+				exit(2);
+			}
+		}
+		else{
+			fprintf(stderr, "Wrong password\n");
+			exit(1);
 		}
-		else
-			gtk_exit(1+0*fprintf(stderr, "Wrong password\n"));
 	else {
 		perror("crypt()");
-		gtk_exit(5);
+		exit(5);
 	}
-	gtk_exit(0);
+	exit(0);
 }
 
diff -Naur /tmp/ktsuss-1.2/src/ktsuss.c ./src/ktsuss.c
--- /tmp/ktsuss-1.2/src/ktsuss.c	2007-09-04 01:25:08.000000000 +0200
+++ ./src/ktsuss.c	2007-09-11 15:49:11.000000000 +0200
@@ -30,12 +30,13 @@
 
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <unistd.h>
 #include "config.h"
 
 
 int main (int argc, char **argv){
-	char *user=NULL;
 	char *path=calloc(strlen(RE_SU_PLACE)+7, sizeof(char));
 	if(argv[1]!=NULL && (0==strcmp(argv[1], "--version") || 0==strcmp(argv[1], "-v"))){
 		printf("%s - Copyright (c) 2007 David B. Cortarello\n\n", PACKAGE_STRING);
diff -Naur /tmp/ktsuss-1.2/src/re_su.c ./src/re_su.c
--- /tmp/ktsuss-1.2/src/re_su.c	2007-09-04 13:58:24.000000000 +0200
+++ ./src/re_su.c	2007-09-11 15:57:50.000000000 +0200
@@ -36,10 +36,14 @@
 */
 
 
+#include <stdlib.h>
 #include <gtk/gtk.h>
 #include <glib.h>
 #include "config.h"
 
+// forward declaration to avoid a header file and warnings
+int auth(const char *username, const char *password, int argc, char **argv);
+
 
 int main(int argc, char **argv){
 	GtkDialog* dialog;

