src: Squash some unused variables
This commit is contained in:
parent
9d8522dfa1
commit
a2880a6ddd
|
|
@ -131,7 +131,6 @@ ostree_get_xattrs_for_path (const char *path,
|
||||||
}
|
}
|
||||||
else if (bytes_read > 0)
|
else if (bytes_read > 0)
|
||||||
{
|
{
|
||||||
const char *p;
|
|
||||||
xattr_names = g_malloc (bytes_read);
|
xattr_names = g_malloc (bytes_read);
|
||||||
if (llistxattr (path, xattr_names, bytes_read) < 0)
|
if (llistxattr (path, xattr_names, bytes_read) < 0)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -405,7 +405,6 @@ import_directory_meta (OstreeRepo *self,
|
||||||
GChecksum *ret_checksum = NULL;
|
GChecksum *ret_checksum = NULL;
|
||||||
GVariant *dirmeta = NULL;
|
GVariant *dirmeta = NULL;
|
||||||
GVariant *xattrs = NULL;
|
GVariant *xattrs = NULL;
|
||||||
gsize xattr_len;
|
|
||||||
|
|
||||||
if (lstat (path, &stbuf) < 0)
|
if (lstat (path, &stbuf) < 0)
|
||||||
{
|
{
|
||||||
|
|
@ -1318,7 +1317,6 @@ ostree_repo_commit (OstreeRepo *self,
|
||||||
ParsedDirectoryData *root = NULL;
|
ParsedDirectoryData *root = NULL;
|
||||||
GVariant *previous_commit = NULL;
|
GVariant *previous_commit = NULL;
|
||||||
GChecksum *ret_commit_checksum = NULL;
|
GChecksum *ret_commit_checksum = NULL;
|
||||||
char *orig_root_metadata_sha256 = NULL;
|
|
||||||
GVariant *root_metadata = NULL;
|
GVariant *root_metadata = NULL;
|
||||||
GChecksum *root_meta_checksum = NULL;
|
GChecksum *root_meta_checksum = NULL;
|
||||||
|
|
||||||
|
|
@ -1388,7 +1386,6 @@ ostree_repo_commit_from_filelist_fd (OstreeRepo *self,
|
||||||
OstreeRepoPrivate *priv = GET_PRIVATE (self);
|
OstreeRepoPrivate *priv = GET_PRIVATE (self);
|
||||||
gboolean ret = FALSE;
|
gboolean ret = FALSE;
|
||||||
ParsedDirectoryData *root = NULL;
|
ParsedDirectoryData *root = NULL;
|
||||||
GVariant *previous_commit = NULL;
|
|
||||||
GChecksum *ret_commit_checksum = NULL;
|
GChecksum *ret_commit_checksum = NULL;
|
||||||
GUnixInputStream *in = NULL;
|
GUnixInputStream *in = NULL;
|
||||||
GDataInputStream *datain = NULL;
|
GDataInputStream *datain = NULL;
|
||||||
|
|
@ -1656,8 +1653,6 @@ checkout_one_directory (OstreeRepo *self,
|
||||||
char *dest_path = NULL;
|
char *dest_path = NULL;
|
||||||
guint32 version, uid, gid, mode;
|
guint32 version, uid, gid, mode;
|
||||||
GVariant *xattr_variant = NULL;
|
GVariant *xattr_variant = NULL;
|
||||||
const guint8 *xattrs = NULL;
|
|
||||||
gsize xattr_len;
|
|
||||||
|
|
||||||
dest_path = g_build_filename (destination, dirname, NULL);
|
dest_path = g_build_filename (destination, dirname, NULL);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,6 @@ ostree_builtin_checkout (int argc, char **argv, const char *prefix, GError **err
|
||||||
gboolean ret = FALSE;
|
gboolean ret = FALSE;
|
||||||
OstreeRepo *repo = NULL;
|
OstreeRepo *repo = NULL;
|
||||||
OstreeCheckout *checkout = NULL;
|
OstreeCheckout *checkout = NULL;
|
||||||
int i;
|
|
||||||
const char *commit;
|
const char *commit;
|
||||||
const char *destination;
|
const char *destination;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,6 @@ ostree_builtin_show (int argc, char **argv, const char *prefix, GError **error)
|
||||||
GOptionContext *context;
|
GOptionContext *context;
|
||||||
gboolean ret = FALSE;
|
gboolean ret = FALSE;
|
||||||
OstreeRepo *repo = NULL;
|
OstreeRepo *repo = NULL;
|
||||||
int i;
|
|
||||||
const char *target;
|
const char *target;
|
||||||
OstreeSerializedVariantType type;
|
OstreeSerializedVariantType type;
|
||||||
GVariant *variant = NULL;
|
GVariant *variant = NULL;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue