Code

add boilerplate licenses in source files
[fusedav.git] / src / session.c
index e4780e9c9ae3bf4986f9771b25f6d6235be302dd..75c37c86e654c449b3db5e146c82e74ea5a2e46d 100644 (file)
@@ -1,3 +1,27 @@
+/* $Id$ */
+
+/***
+  This file is part of fusedav.
+
+  fusedav is free software; you can redistribute it and/or modify it
+  under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2 of the License, or
+  (at your option) any later version.
+  
+  fusedav is distributed in the hope that it will be useful, but WITHOUT
+  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
+  License for more details.
+  
+  You should have received a copy of the GNU General Public License
+  along with fusedav; if not, write to the Free Software Foundation,
+  Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+***/
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include <assert.h>
 #include <pthread.h>
@@ -33,8 +57,7 @@ static pthread_mutex_t credential_mutex = PTHREAD_MUTEX_INITIALIZER;
 static char* ask_user(char *p, int hidden) {
     char q[256], *r;
     struct termios t;
-    int c, l;
-
+    int c = 0, l;
 
     if (hidden) {
         if (!isatty(fileno(stdin)))