X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=attribute.c;h=fb1b3eac3482f1c0725e0e79a4b80166be511350;hp=2ea73a6ab41fed2dcd18c8ca077b661e9809a3b7;hb=55adba3f7fc5619bd433c13d07ecb62e7b4d46a8;hpb=7649f22106cec2c6eb8bb10f279401e1af5451d0 diff --git a/attribute.c b/attribute.c index 2ea73a6a..fb1b3eac 100644 --- a/attribute.c +++ b/attribute.c @@ -1,8 +1,4 @@ -/* - * Copyright (C) 1997 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* Copyright (C) 1997 Andre Noll , see file COPYING. */ /** \file attribute.c Attribute handling functions. */ @@ -108,7 +104,7 @@ int get_attribute_bitnum_by_name(const char *att_name, unsigned char *bitnum) return 1; } -/** Data passed to the action function of lsatt */ +/* Data passed to the action function of lsatt */ static int print_attribute(struct osl_table *table, struct osl_row *row, const char *name, void *data) { @@ -240,6 +236,7 @@ out: if (ret < 0) para_printf(&aca->pbout, "error while adding %s\n", lls_input(i, aca->lpr)); + lls_free_parse_result(aca->lpr, cmd); return ret; } @@ -473,26 +470,12 @@ int attribute_check_callback(struct afs_callback_arg *aca) return aft_check_attributes(att_mask, &aca->pbout); } -/** - * Close the attribute table. - * - * \sa \ref osl_close_table(). - */ static void attribute_close(void) { osl_close_table(attribute_table, OSL_MARK_CLEAN); attribute_table = NULL; } -/** - * Open the attribute table. - * - * \param dir The database directory. - * - * \return Positive on success, negative on errors. - * - * \sa \ref osl_open_table(). - */ static int attribute_open(const char *dir) { int ret;