Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
1f18c369
Commit
1f18c369
authored
Dec 28, 2005
by
Andy Cedilnik
Browse files
COMP: Remove warning
parent
18d31fd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Utilities/cmtar/append.c
View file @
1f18c369
...
...
@@ -64,11 +64,13 @@ int
tar_append_file
(
TAR
*
t
,
char
*
realname
,
char
*
savename
)
{
struct
stat
s
;
int
i
;
libtar_hashptr_t
hp
;
tar_dev_t
*
td
=
NULL
;
tar_ino_t
*
ti
=
NULL
;
#if !defined(_WIN32) || defined(__CYGWIN__)
int
i
;
char
path
[
TAR_MAXPATHLEN
];
#endif
#ifdef DEBUG
printf
(
"==> tar_append_file(TAR=0x%lx (
\"
%s
\"
), realname=
\"
%s
\"
, "
...
...
@@ -151,7 +153,7 @@ tar_append_file(TAR *t, char *realname, char *savename)
libtar_hash_add
(
td
->
td_h
,
ti
);
}
#if
n
def
WIN32
#if
!
def
ined(_WIN32) || defined(__CYGWIN__)
/* check if it's a symlink */
if
(
TH_ISSYM
(
t
))
{
...
...
@@ -172,6 +174,7 @@ tar_append_file(TAR *t, char *realname, char *savename)
th_set_link
(
t
,
path
);
}
#endif
/* print file info */
if
(
t
->
options
&
TAR_VERBOSE
)
th_print_long_ls
(
t
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment