X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=cde%2Flib%2Fcsa%2Fentry.c;h=84dd880685dde83dbe8597614766557d8ad8ace9;hb=444aa700c080ed9fe196986696585a529a9fa4b6;hp=6a8817d586cadafff8d04a34a9c8924c49cf1c1e;hpb=83b6996daa2c5ae22fc2b69093814cb08314954a;p=oweals%2Fcde.git diff --git a/cde/lib/csa/entry.c b/cde/lib/csa/entry.c index 6a8817d5..84dd8806 100644 --- a/cde/lib/csa/entry.c +++ b/cde/lib/csa/entry.c @@ -1,3 +1,25 @@ +/* + * CDE - Common Desktop Environment + * + * Copyright (c) 1993-2012, The Open Group. All rights reserved. + * + * These libraries and programs are free software; you can + * redistribute them and/or modify them under the terms of the GNU + * Lesser General Public License as published by the Free Software + * Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * These libraries and programs are distributed in the hope that + * they will be useful, but WITHOUT ANY WARRANTY; without even the + * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU Lesser General Public License for more + * details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with these libraries and programs; if not, write + * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth + * Floor, Boston, MA 02110-1301 USA + */ /* $XConsortium: entry.c /main/1 1996/04/21 19:23:10 drk $ */ /* * (c) Copyright 1993, 1994 Hewlett-Packard Company @@ -235,7 +257,6 @@ _DtCm_libentry_to_entryh( CSA_uint32 *size, CSA_entry_handle **entries_r) { - CSA_return_code stat = CSA_SUCCESS; CSA_entry_handle *eh; _DtCm_libentry *ptr; int i, j; @@ -458,7 +479,6 @@ _DtCm_cms2csa_reminder_ref( cms_reminder_ref *rptr; int i, count; char isotime[BUFSIZ]; - char *ptr; CSA_opaque_data opq; if (num_rems == NULL || csarems == NULL) @@ -556,7 +576,7 @@ _DtCm_free_entry_content(uint dummy, _DtCm_libentry *entry) { _DtCm_remove_from_entry_list(entry->cal, (caddr_t)entry, (caddr_t)entry); if (entry->e) _DtCm_free_cms_entry(entry->e); - memset((void *)entry, NULL, sizeof(_DtCm_libentry)); + memset((void *)entry, 0, sizeof(_DtCm_libentry)); } /* @@ -589,7 +609,7 @@ _DtCm_free_libentries(_DtCm_libentry *entry) nptr = entry->next; if (entry->e) _DtCm_free_cms_entry(entry->e); - memset((void *)entry, NULL, sizeof(_DtCm_libentry)); + memset((void *)entry, 0, sizeof(_DtCm_libentry)); free(entry); @@ -604,7 +624,6 @@ _DtCm_free_libentries(_DtCm_libentry *entry) extern void _DtCm_free_reminder_references(uint num_rems, CSA_reminder_reference *rems) { - CSA_reminder_reference *nptr; _DtCm_libentry *entry, *head, *cptr; int i;