commit 75d8d90a25290ffd0b74bd5a0ee4cc920c3c198b
parent 72c226a65445ddc52e859a15b7009bf509660e44
Author: sin <sin@2f30.org>
Date: Wed, 2 Jul 2014 00:58:28 +0100
Remove useless comments
Diffstat:
2 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/db.c b/db.c
@@ -4,7 +4,6 @@
int fflag = 0;
int vflag = 0;
-/* Initialize the db context */
struct db *
db_new(const char *prefix)
{
@@ -44,7 +43,6 @@ db_new(const char *prefix)
return db;
}
-/* Free the db context and release resources */
int
db_free(struct db *db)
{
@@ -66,7 +64,6 @@ db_free(struct db *db)
return 0;
}
-/* Update the db entry on disk for the given package */
int
db_add(struct db *db, struct pkg *pkg)
{
@@ -109,7 +106,6 @@ db_add(struct db *db, struct pkg *pkg)
return 0;
}
-/* Physically unlink the db entry for the given package */
int
db_rm(struct db *db, struct pkg *pkg)
{
@@ -131,7 +127,6 @@ db_rm(struct db *db, struct pkg *pkg)
return -1;
}
-/* Load all packages in the db */
int
db_load(struct db *db)
{
diff --git a/pkg.c b/pkg.c
@@ -1,7 +1,7 @@
/* See LICENSE file for copyright and license details. */
#include "pkg.h"
-/* Create a package from the given db entry. e.g. /var/pkg/pkg#version */
+/* Create a package from the db entry. e.g. /var/pkg/pkg#version */
struct pkg *
pkg_load(struct db *db, const char *file)
{
@@ -130,7 +130,6 @@ pkg_load_file(struct db *db, const char *file)
return pkg;
}
-/* Install the given package */
int
pkg_install(struct db *db, struct pkg *pkg)
{
@@ -215,7 +214,6 @@ rm_empty_dir(const char *f, const struct stat *sb, int typeflag,
return 0;
}
-/* Remove the package entries for the given package */
int
pkg_remove(struct db *db, struct pkg *pkg)
{
@@ -270,7 +268,7 @@ pkg_remove(struct db *db, struct pkg *pkg)
return 0;
}
-/* Check if the contents of the given package
+/* Check if the file entries of the package
* collide with corresponding entries in the filesystem */
int
pkg_collisions(struct pkg *pkg)