Commit 3cb44e02 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(delete_aux_item_list): Fixed cut-n-paste errors in comments.

parent 0cbe8fe0
/*
* $Id: aux-items.c,v 1.52 2003/08/16 11:29:04 ceder Exp $
* $Id: aux-items.c,v 1.53 2003/08/16 12:00:28 ceder Exp $
* Copyright (C) 1994-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -1296,8 +1296,6 @@ filter_aux_item_list(const Aux_item_list *original,
{
Aux_item *orig_aux;
unsigned long from, to;
/* Pers_no viewer;
Person *viewer_p;*/
result->items = tmp_alloc(original->length * sizeof (Aux_item));
result->length = 0;
......@@ -1448,25 +1446,25 @@ delete_aux_item_list(const Number_list *items_to_delete,
object_no,
object,
item);
/* If we have linked items, undelete them too.
/* If we have linked items, delete them too.
It is safe to do this with a recursive call
since we have marked this item as undeleted.
since we have marked this item as deleted.
But just to avoid pointless recursion, only
do the recursive call if the corresponding
item is marked as deleted */
item isn't marked as deleted */
linked_item = find_linked_aux_item(item);
if (linked_item && !linked_item->flags.deleted)
{
/* Set up the undelete list for the target object */
/* Set up the delete list for the target object */
item_to_delete = item->linked_item.target_item;
linked_delete.length = 1;
linked_delete.data = &item_to_delete;
/* Find the item list to undelete from */
/* Find the item list to delete from */
linked_item_list = find_linked_aux_item_list(item);
/* Set up the object and object_no parameters for undelete */
/* Set up the object and object_no parameters for delete */
switch (item->linked_item.target_type)
{
case CONF_OBJECT_TYPE:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment