summaryrefslogtreecommitdiff
path: root/libparted/exception.c
Commit message (Collapse)AuthorAgeFilesLines
* maint: Update copyright statements to 2022Brian C. Lane2023-03-241-1/+1
| | | | By running make update-copyright
* maint: Update copyright statements to 2022Brian C. Lane2022-03-231-1/+1
| | | | By running make update-copyright
* maint: Update copyright statements to 2021Brian C. Lane2021-01-181-1/+1
| | | | By running make update-copyright
* maint: Update copyright statements to 2020Brian C. Lane2020-12-111-1/+2
| | | | By running make update-copyright
* maint: Update copyright statements to 2019Brian C. Lane2019-08-121-1/+1
| | | | By running make update-copyright
* maint: run "make update-copyright"Jim Meyering2014-05-251-1/+1
|
* maint: update all copyright year number rangesJim Meyering2013-01-061-1/+1
| | | | Run "make update-copyright".
* maint: update all copyright year number rangesJim Meyering2012-01-011-1/+1
| | | | Run "make update-copyright".
* build: mark functions with "const" or "pure" attribute, per gcc warningsJim Meyering2011-12-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use _GL_ATTRIBUTE_PURE or _GL_ATTRIBUTE_CONST. Mark static functions at point of definition; extern ones at point of declaration. * include/parted/crc32.h: * include/parted/device.h: Likewise. * include/parted/disk.h: Likewise. * include/parted/exception.h: Likewise. * include/parted/filesys.h: Likewise. * include/parted/geom.h: Likewise. * include/parted/natmath.h: Likewise. * include/parted/parted.h: Likewise. * include/parted/unit.h: Likewise. * libparted/arch/linux.c: Likewise. * libparted/disk.c: Likewise. * libparted/exception.c: Likewise. * libparted/fs/amiga/amiga.h: Likewise. * libparted/labels/aix.c: Likewise. * libparted/labels/bsd.c: Likewise. * libparted/labels/dos.c: Likewise. * libparted/labels/dvh.c: Likewise. * libparted/labels/efi_crc32.c: Likewise. * libparted/labels/gpt.c: Likewise. * libparted/labels/mac.c: Likewise. * libparted/labels/pc98.c: Likewise. * libparted/labels/rdb.c: Likewise. * libparted/labels/sun.c: Likewise. * libparted/unit.c: Likewise. * parted/ui.c: Likewise. * parted/strlist.c: Likewise. * parted/strlist.h: Likewise. * libparted/tests/common.h (_implemented_disk_label): Mark as pure. * libparted/cs/natmath.c (extended_euclid): Mark as pure.
* Remove PED_ASSERT action argumentBrian C. Lane2011-03-051-2/+2
| | | | | | The action argument was a leftover from when the PED_ASSERT macro was last changed. This removes that argument from the macro and from all occurrences of it.
* maint: update copyright year ranges to include 2011Jim Meyering2011-02-221-1/+1
| | | | Run "make update-copyright".
* maint: don't hard-code bug-reporting addressJim Meyering2010-12-301-2/+2
| | | | | | | | * libparted/exception.c (default_handler): Use PACKAGE_BUGREPORT rather than hard-coding bug-parted@... * libparted/labels/gpt.c (_parse_header) [DISCOVER_ONLY]: Don't mention the bug-reporting address explicitly, since ped_exception_throw is about to do just that.
* maint: remove empty lines at end of fileJim Meyering2010-04-281-1/+0
| | | | | | This lets one more "syntax-check" test pass. Run this command: git ls-files|grep -v gnulib|xargs perl -pi -0777 -e 's/\n\n+$/\n/'
* Fix minor spelling errorsOtavio Salvador2010-02-041-1/+1
| | | | | | | This fixes minor spelling errors in the source code. Basically: s/informations/information/g s/prefered/preferred/g
* maint: update all FSF copyright year lists to include 2010Jim Meyering2010-01-081-1/+1
| | | | Run this command: make update-copyright
* maint: update most copyright year lists to include 2009Jim Meyering2009-09-291-1/+1
| | | | | | I used this command: make update-copyright \ UPDATE_COPYRIGHT_FORCE=1 UPDATE_COPYRIGHT_USE_INTERVALS=1
* remove all trailing blanksJim Meyering2009-03-051-2/+2
| | | | | | ...by running these commands: t=$'\t' git grep -l "[ $t]\$"|xargs perl -pi -e 's/[ \t]+$//'
* remove more useless "if" tests before freeJim Meyering2008-05-291-2/+2
| | | | | | | | * libparted/arch/gnu.c (gnu_sync): * libparted/cs/natmath.c (ped_alignment_destroy): * libparted/exception.c (ped_exception_catch): * libparted/labels/dos.c (msdos_partition_destroy): * parted/parted.c (do_mkpart, do_mkpartfs):
* Use free, not ped_free.Jim Meyering2008-05-291-3/+3
| | | | | | | * libparted/libparted.c (ped_free): Remove function. [DEBUG] (_check_dodgy_pointer): Remove function. Global substitution: perl -pi -e 's/\bped_free\b/free/g' $(lid -knone ped_free)
* avoid const-related compiler warningsJim Meyering2008-05-291-5/+5
| | | | | | | | | | | | | | | | | | | | | * libparted/arch/linux.c (init_dasd, init_generic): Likewise. * libparted/exception.c (type_strings, option_strings): Likewise. (ped_exception_get_type_string, ped_exception_get_option_string): * libparted/fs/ext2/ext2_block_relocator.c (ext2_block_relocator_flush): * libparted/fs/ext2/ext2_mkfs.c (_set_dirent): Likewise. * libparted/fs/fat/resize.c (ask_type): Likewise. * libparted/fs/fat/traverse.c (fat_traverse_begin): Likewise. * libparted/fs/fat/traverse.h (buffer_size): Likewise. * libparted/labels/mac.c (_rawpart_cmp_type, _rawpart_cmp_name): (_rawpart_is_partition_map, _rawpart_is_boot, _rawpart_is_driver): (_rawpart_has_driver): Likewise. * parted/parted.c (options, options_help, number_msg): Likewise. (label_type_msg_start, flag_msg_start, unit_msg_start): Likewise. (part_type_msg, fs_type_msg_start, start_end_msg, state_msg): Likewise. (device_msg, name_msg, resize_msg_start, copyright_msg, do_print): * parted/ui.c (prog_name, banner_msg, usage_msg, bug_msg): Likewise. (screen_width): Likewise. * parted/ui.h (prog_name): Likewise.
* do not loop in case message exception has no messageOtavio Salvador2008-04-261-1/+1
| | | | The exception handler was looping when the exception had no message.
* fix memory leak in exception handlerOtavio Salvador2008-04-241-1/+2
| | | | | | The exception handler wasn't freeing the memory when the allocated space wasn't enough to store the error message thus leaving unmanaged memory around.
* Updated GPL license boilerplate.David Cantrell2007-07-231-3/+2
|
* Whitespace cleanups.David Cantrell2007-05-021-7/+6
|
* Replaced [f]printf with fput[c|s] globally.Debarshi Ray2007-03-081-1/+1
|
* Use <config.h> consistently, not "config.h".Jim Meyering2007-03-071-1/+1
| | | | | * Makefile.cfg (local-checks-to-skip): Remove sc_require_config_h, to enable the "make distcheck" test for this.
* Compile warning-free with "gcc -Wall -Wshadow".Jim Meyering2007-02-131-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | Hello, I find that keeping code warning-free (wrt gcc -Wall -Wshadow) makes it easier to avoid certain classes of bugs. Compiling with gcc -Wall -Wshadow evoked a few warnings on a Debian/unstable system. Here are patches to fix those: * libparted/exception.c (default_handler): Rename parameter "ex" to "e", to avoid shadowing file-scoped global. * libparted/fs/linux_swap/linux_swap.c (_generic_swap_probe): Add a "can't happen" (with current callers) "default: goto error" clause in a switch to avoid a may-be-used-uninitialized warning. (_generic_swap_clobber): Likewise. * libparted/fs/hfs/reloc_plus.c (hfsplus_pack_free_space_from_block): Rename local variable "div" to "divisor", to avoid shadowing the function in <stdlib.h>. * libparted/fs/hfs/reloc.c (hfs_pack_free_space_from_block): Likewise. * libparted/fs/hfs/cache.c (hfsc_cache_add_extent): Rename parameter "index" to "ref_index" to avoid shadowing the <string.h> function. * libparted/labels/sun.c (sun_partition_enumerate): Rename local variable "i" to "j", to avoid shadowing another local. Signed-off-by: Jim Meyering <jim@meyering.net>
* libparted/exception.c: Dynamically allow space of exception message.Otavio Salvador2006-12-061-7/+16
|
* Fix ChangeLogAnant Narayanan2006-09-141-0/+304
git-svn-id: svn://svn.debian.org/svn/parted/upstream/trunk@820 2d424fd7-7fe2-0310-af74-8bc65edeb173