git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mount: Not deprecated any more.
[libguestfs.git]
/
fish
/
hexedit.c
diff --git
a/fish/hexedit.c
b/fish/hexedit.c
index
dfa1889
..
885c54e
100644
(file)
--- a/
fish/hexedit.c
+++ b/
fish/hexedit.c
@@
-35,7
+35,7
@@
static off_t get_size (const char *filename);
int
static off_t get_size (const char *filename);
int
-run_hexedit (const char *cmd,
in
t argc, char *argv[])
+run_hexedit (const char *cmd,
size_
t argc, char *argv[])
{
if (argc < 1 || argc > 3) {
fprintf (stderr, _("hexedit (device|filename) [max | start max]\n"));
{
if (argc < 1 || argc > 3) {
fprintf (stderr, _("hexedit (device|filename) [max | start max]\n"));
@@
-100,7
+100,7
@@
run_hexedit (const char *cmd, int argc, char *argv[])
int r;
struct stat oldstat, newstat;
char buf[BUFSIZ];
int r;
struct stat oldstat, newstat;
char buf[BUFSIZ];
-
char tmp[] = "/tmp/guestfishXXXXXX"
;
+
TMP_TEMPLATE_ON_STACK (tmp)
;
int fd = mkstemp (tmp);
if (fd == -1) {
perror ("mkstemp");
int fd = mkstemp (tmp);
if (fd == -1) {
perror ("mkstemp");