/* -*-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
*
*/
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;
/* --- Print current status --- */
- fprintf(kg__ttyfp, "\r%5i...", sz);
+ fprintf(kg__ttyfp, "\r%5lu...", (unsigned long)sz);
fflush(kg__ttyfp);
/* --- Read the next character --- */