]> andersk Git - moira.git/blobdiff - update/smskey.c
Use krb5_error_code for return value of krb5 library functions.
[moira.git] / update / smskey.c
index c2d6f09674e54c9160289af6990290e5982a28fc..f0cdf80522386dc9a4564b1f8c343bc509f2d9ee 100644 (file)
@@ -1,15 +1,22 @@
-/* $Header$ */
-
-/*  (c) Copyright 1988 by the Massachusetts Institute of Technology. */
-/*  For copying and distribution information, please see the file */
-/*  <mit-copyright.h>. */
-
+/* $Id$
+ *
+ * Copyright (C) 1988-1998 by the Massachusetts Institute of Technology.
+ * For copying and distribution information, please see the file
+ * <mit-copyright.h>.
+ */
 
 #include <mit-copyright.h>
-#include <stdio.h>
-#include <sys/file.h>
+#include <moira.h>
+
 #include <fcntl.h>
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+
 #include <des.h>
+
+RCSID("$Header$");
+
 int debug = 0;                 /* goddamn des library breakage */
 char string[] = "sms\0\0Athena\0\1";
 char srvtab[] = "/etc/srvtab";
@@ -19,8 +26,8 @@ char insecure[] =
 int main(int argc, char **argv)
 {
   int fd;
-  C_Block key;
-  char *tty, *ttyname();
+  des_cblock key;
+  char *tty;
   tty = ttyname(0);
   if (!tty || strcmp(tty, "/dev/console"))
     {
@@ -45,4 +52,5 @@ int main(int argc, char **argv)
     perror(srvtab);
   close(fd);
   printf("\nKey written.\n");
+  exit(0);
 }
This page took 0.037109 seconds and 4 git commands to generate.