]> git.ipfire.org Git - thirdparty/strongswan.git/blobdiff - scripts/bin2sql.c
android: Use activity when reconnecting without (or a possibly wrong) password
[thirdparty/strongswan.git] / scripts / bin2sql.c
index 4f83dd3f2f4a4147543d1ef0320b317a364b2a75..17556ca7cf714ef0f90dce12ffd78c4b45e06ae3 100644 (file)
@@ -1,3 +1,17 @@
+/*
+ * Copyright (C) 2008 Martin Willi
+ * HSR Hochschule fuer Technik Rapperswil
+ *
+ * This program 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.  See <http://www.fsf.org/copyleft/gpl.txt>.
+ *
+ * This program 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.
+ */
 
 #include <stdio.h>
 
@@ -6,7 +20,6 @@
  */
 int main(int argc, char *argv[])
 {
-       int end = 0;
        unsigned char byte;
 
        printf("X'");
@@ -14,11 +27,10 @@ int main(int argc, char *argv[])
        {
                if (fread(&byte, 1, 1, stdin) != 1)
                {
-                       end = 1;
                        break;
                }
                printf("%02x", (unsigned int)byte);
-       }       
+       }
        printf("'\n");
        return 0;
 }