* ovload.c: Include nstrtok.h
* strtok.c: Include nstrtok.h for prototype. Declare delim as
const char * argument. Delete rcsid.
* string_table.c: Delete rcsid.
* kadm5_create.c (build_name_with_realm): Declare static.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13536
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-06-29 Ezra Peisach <epeisach@mit.edu>
+
+ * nstrtok.h: New file with prototype for nstrtok.
+
+ * ovload.c: Include nstrtok.h
+
+ * strtok.c: Include nstrtok.h for prototype. Declare delim as
+ const char * argument. Delete rcsid.
+
+ * string_table.c: Delete rcsid.
+
+ * kadm5_create.c (build_name_with_realm): Declare static.
+
2001-06-21 Ezra Peisach <epeisach@mit.edu>
* kdb5_util.c (main): Change optarg to koptarg to prevent
/*
* Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved.
*
- * $Id$
* $Source$
*/
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-#if !defined(lint) && !defined(__CODECENTER__)
-static char *rcsid = "$Header$";
-#endif
-
#include "string_table.h"
#include <stdio.h>
*
* Requires: both strings are null-terminated
*/
-char *build_name_with_realm(char *name, char *realm)
+static char *build_name_with_realm(char *name, char *realm)
{
char *n;
--- /dev/null
+/* Prototype for nstrtok */
+char *nstrtok(char *, const char *delim);
+
#include <kadm5/adb.h>
#include "import_err.h"
#include "kdb5_util.h"
-
-char *nstrtok();
+#include "nstrtok.h"
#define LINESIZE 32768 /* XXX */
#define PLURAL(count) (((count) == 1) ? error_message(IMPORT_SINGLE_RECORD) : error_message(IMPORT_PLURAL_RECORDS))
/*
* Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved.
*
- * $Header$
*/
-#if !defined(lint) && !defined(__CODECENTER__)
-static char *rcsid = "$Header$";
-#endif
-
/* String table of messages for kadm5_create */
char *str_INITING_KCONTEXT = "while initializing the kerberos context";
/*
* Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved
*
- * $Header$
- *
- * $Log$
- * Revision 1.1 1996/08/01 18:39:54 bjaspan
- * * Makefile.in, Makefile.ov, configure.in, dump.c: add support for
- * dump/load of OV*Secure-compatible format.
- *
- * Revision 1.1.2.1 1996/06/20 21:49:01 marc
- * File added to the repository on a branch
- *
- * Revision 1.1 1993/11/14 23:51:23 shanzer
- * Initial revision
- *
*/
-#if !defined(lint) && !defined(__CODECENTER__)
-static char *rcsid = "$Header$";
-#endif
-
-
/*
* Copyright (c) 1988 Regents of the University of California.
* All rights reserved.
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)strtok.c 5.7 (Berkeley) 6/1/90";
-#endif /* LIBC_SCCS and not lint */
-
#include <stddef.h>
#include <string.h>
+#include "nstrtok.h"
/*
* Function: nstrtok
char *
nstrtok(s, delim)
- register char *s, *delim;
+ register char *s;
+ register const char *delim;
{
- register char *spanp;
+ register const char *spanp;
register int c, sc;
char *tok;
static char *last;