view ffstools/tiffs-mkfs/globals.h @ 965:2969032bdfac

fcup-smsend[mult]: fix buglet in K&R C NULL pointer passing The only 100% safe way to pass a NULL pointer as a function argument in K&R C is to cast 0 to a pointer type; failing to do so may cause mysterious bugs (invalid stack frames or garbage in argument registers) on 64-bit machines. This issue has already been fixed in most of FC host tools, but I just found some missed spots: passing of NULL UDH to PDU encoding functions in fcup-smsend[mult] in the case of single (not concatenated) SMS.
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 01 Sep 2023 07:33:51 +0000
parents 178ed445021d
children
line wrap: on
line source

/*
 * extern declarations of global variables
 */

extern unsigned ffs_sector_size, ffs_nsectors;
extern unsigned ffs_nsectors;
extern char *format_name;
extern unsigned chunk_size_max, block_files_max, journal_size;
extern int no_journal;
extern u_char *inode_block, *data_block, *chunk_buffer;
extern struct tiffs_inode *inode_array;
extern unsigned inode_fill_level, data_fill_level, objects_in_block;
extern unsigned blocks_written;

extern char *input_host_dir;
extern struct tree_object root;

extern char *output_filename;
extern int output_fd;