Skip to content

Commit 26593ca

Browse files
committed
tools/tests: Privatize remove_fake_partitions
Finding by cppcheck 2.17. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
1 parent f8499c6 commit 26593ca

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

tools/tests/fake_devices.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void add_fake_partition(int devnum)
7272
exit(1);
7373
}
7474

75-
void remove_fake_partitions(int n)
75+
static void remove_fake_partitions(int n)
7676
{
7777
PedPartition *pp = fake_devices[n].part_list;
7878
PedPartition *next;

tools/tests/fake_devices.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ extern int num_fake_devices;
2121

2222
void allocate_fake_devices(int n);
2323
void add_fake_partition(int devnum);
24-
void remove_fake_partitions(int n);
2524
void free_fake_devices(void);
2625

2726
PedDevice *ped_device_get_next_custom_fake(const PedDevice *dev);

0 commit comments

Comments
 (0)