~mdw
/
become
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Major overhaul. Now uses DSA signatures rather than the bogus symmetric
[become]
/
src
/
name.c
diff --git
a/src/name.c
b/src/name.c
index
6599d45
..
bd49ab9
100644
(file)
--- a/
src/name.c
+++ b/
src/name.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: name.c,v 1.
7 1998/04/23 13:23:56
mdw Exp $
+ * $Id: name.c,v 1.
8 2003/10/12 00:14:55
mdw Exp $
*
* Looking up of names in symbol tables
*
*
* Looking up of names in symbol tables
*
@@
-29,6
+29,10
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: name.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: name.c,v $
+ * Revision 1.8 2003/10/12 00:14:55 mdw
+ * Major overhaul. Now uses DSA signatures rather than the bogus symmetric
+ * encrypt-and-hope thing. Integrated with mLib and Catacomb.
+ *
* Revision 1.7 1998/04/23 13:23:56 mdw
* Fix bugs involving empty classes.
*
* Revision 1.7 1998/04/23 13:23:56 mdw
* Fix bugs involving empty classes.
*
@@
-75,6
+79,11
@@
#include <grp.h>
#include <pwd.h>
#include <grp.h>
#include <pwd.h>
+/* --- mLib headers --- */
+
+#include <mLib/alloc.h>
+#include <mLib/sym.h>
+
/* --- Local headers --- */
#include "config.h"
/* --- Local headers --- */
#include "config.h"
@@
-83,9
+92,7
@@
#include "class.h"
#include "name.h"
#include "netg.h"
#include "class.h"
#include "name.h"
#include "netg.h"
-#include "sym.h"
#include "userdb.h"
#include "userdb.h"
-#include "utils.h"
/*----- Static variables --------------------------------------------------*/
/*----- Static variables --------------------------------------------------*/
@@
-349,7
+356,7
@@
void name_init(void)
{
/* --- Initialise the name table --- */
{
/* --- Initialise the name table --- */
- sym_create
Table
(&name__table);
+ sym_create(&name__table);
/* --- Add everyone into the table --- */
/* --- Add everyone into the table --- */
@@
-396,7
+403,7
@@
void name_end(void)
sym_iter i;
name *n;
sym_iter i;
name *n;
- for (sym_
createI
ter(&i, &name__table); (n = sym_next(&i)) != 0; ) {
+ for (sym_
mki
ter(&i, &name__table); (n = sym_next(&i)) != 0; ) {
if (n->c)
class_dec(n->c);
}
if (n->c)
class_dec(n->c);
}
@@
-404,7
+411,7
@@
void name_end(void)
/* --- Destroy and recreate the table --- */
/* --- Destroy and recreate the table --- */
- sym_destroy
Table
(&name__table);
+ sym_destroy(&name__table);
}
/* --- @name_find@ --- *
}
/* --- @name_find@ --- *
@@
-444,7
+451,7
@@
void name_dump(void)
name *n;
trace(TRACE_DEBUG, "name: dumping names");
name *n;
trace(TRACE_DEBUG, "name: dumping names");
- for (sym_
createI
ter(&i, &name__table); (n = sym_next(&i)) != 0; ) {
+ for (sym_
mki
ter(&i, &name__table); (n = sym_next(&i)) != 0; ) {
trace(TRACE_DEBUG, "name: dumping `%s'", n->base.name);
if (!n->c)
trace(TRACE_DEBUG, "name: <empty>");
trace(TRACE_DEBUG, "name: dumping `%s'", n->base.name);
if (!n->c)
trace(TRACE_DEBUG, "name: <empty>");