src: Squash some unused variables

This commit is contained in:
Colin Walters 2011-10-20 16:30:34 -04:00
parent 9d8522dfa1
commit a2880a6ddd
4 changed files with 0 additions and 8 deletions

View File

@ -131,7 +131,6 @@ ostree_get_xattrs_for_path (const char *path,
}
else if (bytes_read > 0)
{
const char *p;
xattr_names = g_malloc (bytes_read);
if (llistxattr (path, xattr_names, bytes_read) < 0)
{

View File

@ -405,7 +405,6 @@ import_directory_meta (OstreeRepo *self,
GChecksum *ret_checksum = NULL;
GVariant *dirmeta = NULL;
GVariant *xattrs = NULL;
gsize xattr_len;
if (lstat (path, &stbuf) < 0)
{
@ -1318,7 +1317,6 @@ ostree_repo_commit (OstreeRepo *self,
ParsedDirectoryData *root = NULL;
GVariant *previous_commit = NULL;
GChecksum *ret_commit_checksum = NULL;
char *orig_root_metadata_sha256 = NULL;
GVariant *root_metadata = NULL;
GChecksum *root_meta_checksum = NULL;
@ -1388,7 +1386,6 @@ ostree_repo_commit_from_filelist_fd (OstreeRepo *self,
OstreeRepoPrivate *priv = GET_PRIVATE (self);
gboolean ret = FALSE;
ParsedDirectoryData *root = NULL;
GVariant *previous_commit = NULL;
GChecksum *ret_commit_checksum = NULL;
GUnixInputStream *in = NULL;
GDataInputStream *datain = NULL;
@ -1656,8 +1653,6 @@ checkout_one_directory (OstreeRepo *self,
char *dest_path = NULL;
guint32 version, uid, gid, mode;
GVariant *xattr_variant = NULL;
const guint8 *xattrs = NULL;
gsize xattr_len;
dest_path = g_build_filename (destination, dirname, NULL);

View File

@ -42,7 +42,6 @@ ostree_builtin_checkout (int argc, char **argv, const char *prefix, GError **err
gboolean ret = FALSE;
OstreeRepo *repo = NULL;
OstreeCheckout *checkout = NULL;
int i;
const char *commit;
const char *destination;

View File

@ -39,7 +39,6 @@ ostree_builtin_show (int argc, char **argv, const char *prefix, GError **error)
GOptionContext *context;
gboolean ret = FALSE;
OstreeRepo *repo = NULL;
int i;
const char *target;
OstreeSerializedVariantType type;
GVariant *variant = NULL;