Ondrej Oprala
3917a95d90
hexdump: make addfile() variable names more hinting of their purpose
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08 14:16:04 +01:00
Ondrej Oprala
0acd3f5d0f
hexdump: use skip_space() in add()
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08 14:15:39 +01:00
Ondrej Oprala
d01d144c4b
hexdump: rename in() to first_letter()
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-08 13:54:32 +01:00
Ondrej Oprala
cb98600831
hexdump: get rid of redundant typecasts
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08 13:51:19 +01:00
Ondrej Oprala
f65e62e0ab
hexdump: rewrite cluttered case statements
...
[kzak@redhat.com: - use strchr() for in() macro]
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-08 13:42:39 +01:00
Ondrej Oprala
961b4cd642
hexdump: use GNU case ranges where possible
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08 12:54:53 +01:00
Ondrej Oprala
bec2d4582f
hexdump: use xstrncpy in add()
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08 12:54:53 +01:00
Ondrej Oprala
acf74fc29d
hexdump: minor formatting improvements
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08 12:54:53 +01:00
Ondrej Oprala
bbc8c1531f
hexdump: rename next{fs,fu,pr} to {fs,fu,pr}list
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08 12:54:52 +01:00
Ondrej Oprala
96ea3d3200
hexdump: rewrite addfile() to use getline()
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08 12:54:52 +01:00
Ondrej Oprala
d6e5614e5d
hexdump: formatting and variable name cleanup
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08 12:54:52 +01:00
Ondrej Oprala
dabfe2ad7c
hexdump: rewrite() formatting improvements
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08 12:54:52 +01:00
Ondrej Oprala
9c2cb9b0ea
hexdump: rewrite escape()
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08 12:54:52 +01:00
Ondrej Oprala
eef27d32fa
hexdump: rewrite rewrite()
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08 12:54:52 +01:00
Ondrej Oprala
7e6e290be9
hexdump:rewrite add()
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08 12:54:52 +01:00
Ondrej Oprala
89dd9eb3b4
hexdump: rewrite addfile()
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08 12:54:52 +01:00
Ondrej Oprala
9db5120719
hexdump: use list.h queues and rewrite redundant for cycles
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-11-08 12:54:52 +01:00
Benno Schulenberg
b50945d4ac
textual: spell and encode the name of Arkadiusz Miśkiewicz correctly
...
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-02-06 11:15:02 +01:00
Ondrej Oprala
f1107b4a87
hexdump: do not segfault when iterating over an empty format string
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-01-10 11:08:51 +01:00
Sami Kerola
89a13b46bd
hexdump: fix shadow declaration
...
text-utils/hexdump.h:84:5: warning: shadowed declaration is here [-Wshadow]
./include/xalloc.h:23:28: warning: declaration of 'size' shadows a global declaration [-Wshadow]
./include/xalloc.h:33:40: warning: declaration of 'size' shadows a global declaration [-Wshadow]
./include/xalloc.h:43:49: warning: declaration of 'size' shadows a global declaration [-Wshadow]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-07-26 13:51:22 +02:00
Karel Zak
bafd2d4653
hexdump: make code more robust
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-02 15:34:08 +01:00
Petr Uzel
c53c38b90b
hexdump: fix segfault due to uninitialized memory
...
util-linux commit 85bf44b714
replaced all calls to emalloc() with xmalloc(), whose semantics
is however different - it does not zero allocated memory. This
made hexdump segfault if MALLOC_PERTURB_ was set.
Reported-by: Kyrill Detinov <lazy.kent@opensuse.org>
Addresses: https://bugzilla.novell.com/show_bug.cgi?id=710877
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2011-08-15 14:28:21 +02:00
Sami Kerola
85bf44b714
hexdump: new usage(), xalloc and err.h stuff
...
New usage help screen and print version switch. Also fixes to
exit codes, util linux xmalloc replaced emalloc and every error
print is using libc error function.
[kzak@redhat.com: - minor changes in formatting and coding style]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-02-21 14:38:23 +01:00
Daniel Mierswa
c0f19ccff7
replace bcopy,bzero,index and rindex
...
Those 4 functions are marked as LEGACY in POSIX.1-2001 and removed in
POSIX.1-2008.
Replaced with memmove,memset,strchr and strrchr.
Signed-off-by: Daniel Mierswa <impulze@impulze.org>
2009-08-17 11:15:59 +02:00
Karel Zak
ffc4374869
Imported from util-linux-2.11o tarball.
2006-12-07 00:25:53 +01:00
Karel Zak
c07ebfa1e0
Imported from util-linux-2.11b tarball.
2006-12-07 00:25:46 +01:00
Karel Zak
22853e4a82
Imported from util-linux-2.10m tarball.
2006-12-07 00:25:43 +01:00
Karel Zak
7eda085c41
Imported from util-linux-2.9v tarball.
2006-12-07 00:25:39 +01:00
Karel Zak
2b6fc908bc
Imported from util-linux-2.8 tarball.
2006-12-07 00:25:35 +01:00
Karel Zak
fd6b7a7ffc
Imported from util-linux-2.7.1 tarball.
2006-12-07 00:25:34 +01:00
Karel Zak
6dbe3af945
Imported from util-linux-2.2 tarball.
2006-12-07 00:25:32 +01:00