diff options
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/rdsquashfs/describe.c | 2 | ||||
| -rw-r--r-- | bin/rdsquashfs/list_files.c | 2 | ||||
| -rw-r--r-- | bin/rdsquashfs/rdsquashfs.c | 2 | ||||
| -rw-r--r-- | bin/rdsquashfs/stat.c | 4 | ||||
| -rw-r--r-- | bin/sqfsdiff/node_compare.c | 2 | 
5 files changed, 12 insertions, 0 deletions
| diff --git a/bin/rdsquashfs/describe.c b/bin/rdsquashfs/describe.c index 8f45243..5107f95 100644 --- a/bin/rdsquashfs/describe.c +++ b/bin/rdsquashfs/describe.c @@ -128,6 +128,8 @@ int describe_tree(const sqfs_tree_node_t *root, const char *unpack_root)  				return -1;  		}  		break; +	default: +		break;  	}  	return 0; diff --git a/bin/rdsquashfs/list_files.c b/bin/rdsquashfs/list_files.c index 238ffec..b1a0102 100644 --- a/bin/rdsquashfs/list_files.c +++ b/bin/rdsquashfs/list_files.c @@ -37,6 +37,7 @@ static void mode_to_str(sqfs_u16 mode, char *p)  	case S_IXGRP:           *(p++) = 'x'; break;  	case S_ISGID:           *(p++) = 'S'; break;  	case 0:                 *(p++) = '-'; break; +	default:                              break;  	}  	*(p++) = (mode & S_IROTH) ? 'r' : '-'; @@ -47,6 +48,7 @@ static void mode_to_str(sqfs_u16 mode, char *p)  	case S_IXOTH:           *(p++) = 'x'; break;  	case S_ISVTX:           *(p++) = 'T'; break;  	case 0:                 *(p++) = '-'; break; +	default:                              break;  	}  	*p = '\0'; diff --git a/bin/rdsquashfs/rdsquashfs.c b/bin/rdsquashfs/rdsquashfs.c index 5b6ce19..47eaf94 100644 --- a/bin/rdsquashfs/rdsquashfs.c +++ b/bin/rdsquashfs/rdsquashfs.c @@ -165,6 +165,8 @@ int main(int argc, char **argv)  		if (dump_xattrs(xattr, n->inode))  			goto out;  		break; +	default: +		break;  	}  	status = EXIT_SUCCESS; diff --git a/bin/rdsquashfs/stat.c b/bin/rdsquashfs/stat.c index a5aab60..642aae9 100644 --- a/bin/rdsquashfs/stat.c +++ b/bin/rdsquashfs/stat.c @@ -87,6 +87,8 @@ int stat_file(const sqfs_tree_node_t *node)  	case SQFS_INODE_EXT_SOCKET:  		nlinks = inode->data.ipc_ext.nlink;  		break; +	default: +		break;  	}  	timeval = inode->base.mod_time; @@ -175,6 +177,8 @@ int stat_file(const sqfs_tree_node_t *node)  			sqfs_free(idx);  		}  		break; +	default: +		break;  	}  	return 0;  } diff --git a/bin/sqfsdiff/node_compare.c b/bin/sqfsdiff/node_compare.c index 59d1831..d8f0878 100644 --- a/bin/sqfsdiff/node_compare.c +++ b/bin/sqfsdiff/node_compare.c @@ -78,6 +78,8 @@ int node_compare(sqfsdiff_t *sd, sqfs_tree_node_t *a, sqfs_tree_node_t *b)  			if (b->inode->base.type == SQFS_INODE_SOCKET)  				demoted = true;  			break; +		default: +			break;  		}  		if (promoted) { | 
