(0005074)
vda
02-18-08 12:11
|
uuidcache_init_partitions(void)
{
static char ptname[100]; <=== no way you can have such static in bbox
...
+char * get_spec_by_uuid(const char *uuid, int * major, int * minor);
+char * get_spec_by_volume_label(const char *volumelabel, int * major, int * minor);
+int display_uuid_cache(void);
These functions are unused.
util-linux/volume_id/*.h - why do you need one *.h file per declaration?
Feel masochistic today?
+ procpt = fopen(PROC_PARTITIONS, "r");
+ if (!procpt) {
+ static int warn = 0;
+ if (!warn++)
+ fprintf (stderr, _("mount: could not open %s, so UUID and LABEL "
+ "conversion cannot be done.\n"),
+ PROC_PARTITIONS);
+ return;
+ }
Good Lord. Just use xfopen. If /proc/partitions won't open, something is teeribly wrong anyway, what's the point in trying to continue?
+ static unsigned int sectors[] = {
+ 63, 255, 256, 16, 399, 0
+ };
"const" is missing.
+struct hfs_mdb {
...
+} __attribute__((__packed__)) *hfs;
Please. Do not use global variables unless you have to.
+ printf("-");
bb_putchar?
+ strcpy(id->type_version, "1");
Can you store two bytes without function call?
Not needed: util-linux/volume_id/Makefile
And so on and so forth... |