X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=attribute.c;h=fb1b3eac3482f1c0725e0e79a4b80166be511350;hp=f7091727bc5b62518f91436de9428ba6c14b5a86;hb=55adba3f7fc5619bd433c13d07ecb62e7b4d46a8;hpb=c75c35b176cdacf157d27617e954961c88f33975 diff --git a/attribute.c b/attribute.c index f7091727..fb1b3eac 100644 --- a/attribute.c +++ b/attribute.c @@ -104,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) { @@ -236,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; } @@ -469,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;