chiark / gitweb /
Sources placed under CVS control.
[become] / src / keygen.c
index 17bf93cd3100ec5a86e235be55489fd741fc733f..f1b0abe5429fefba518c17df49f796926b550171 100644 (file)
@@ -1,13 +1,13 @@
 /* -*-c-*-
  *
- * $Id: keygen.c,v 1.1 1997/07/21 13:47:48 mdw Exp $
+ * $Id: keygen.c,v 1.2 1997/08/04 10:24:23 mdw Exp $
  *
  * Key generation
  *
  * (c) 1997 EBI
  */
 
-/*----- Licencing notice --------------------------------------------------*
+/*----- Licensing notice --------------------------------------------------*
  *
  * This file is part of `become'
  *
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with `become'; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * along with `become'; if not, write to the Free Software Foundation,
+ * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
 /*----- Revision history --------------------------------------------------*
  *
  * $Log: keygen.c,v $
- * Revision 1.1  1997/07/21 13:47:48  mdw
+ * Revision 1.2  1997/08/04 10:24:23  mdw
+ * Sources placed under CVS control.
+ *
+ * Revision 1.1  1997/07/21  13:47:48  mdw
  * Initial revision
  *
  */
@@ -245,9 +248,9 @@ static void kg__gen(unsigned char *ui, size_t sz)
   unsigned long fact = 1000000 / CLOCKS_PER_SEC;
 
   fprintf(kg__ttyfp,
-"I need to get %i random bits; I'll do this by timing your keypresses.\n"
+"I need to get %lu random bits; I'll do this by timing your keypresses.\n"
 "Please type some arbitrary text until I say `done'.\n",
-         sz);
+         (unsigned long)sz);
 
   {
     struct timeval tv;
@@ -261,7 +264,7 @@ static void kg__gen(unsigned char *ui, size_t sz)
 
     /* --- Print current status --- */
 
-    fprintf(kg__ttyfp, "\r%5i...", sz);
+    fprintf(kg__ttyfp, "\r%5lu...", (unsigned long)sz);
     fflush(kg__ttyfp);
 
     /* --- Read the next character --- */