diff options
author | Jeff Layton <jlayton@redhat.com> | 2010-02-07 10:52:59 -0500 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2010-02-07 10:52:59 -0500 |
commit | 96ff754155ef13681c79ccbda2d998f411ac0e6f (patch) | |
tree | 7fa231496aca60a8061cd8b4a29974d3fdba2ac8 | |
parent | 00a84a5f8532bcc5c5a39fd600606f2c337e46f9 (diff) | |
download | cifs-utils-96ff754155ef13681c79ccbda2d998f411ac0e6f.tar.gz cifs-utils-96ff754155ef13681c79ccbda2d998f411ac0e6f.tar.bz2 cifs-utils-96ff754155ef13681c79ccbda2d998f411ac0e6f.zip |
cifs.upcall: replace SMB_STRNDUP with strndup
Signed-off-by: Jeff Layton <jlayton@redhat.com>
-rw-r--r-- | cifs.upcall.c | 2 | ||||
-rwxr-xr-x | configure | 3 | ||||
-rw-r--r-- | configure.ac | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/cifs.upcall.c b/cifs.upcall.c index b83c36f..eb2279a 100644 --- a/cifs.upcall.c +++ b/cifs.upcall.c @@ -220,7 +220,7 @@ find_krb5_cc(const char *dirname, uid_t uid) syslog(LOG_DEBUG, "%s: %s is valid ccache", __func__, ccname); free(best_cache); - best_cache = SMB_STRNDUP(ccname, MAX_CCNAME_LEN); + best_cache = strndup(ccname, MAX_CCNAME_LEN); best_time = cred_time; free(namelist[i]); } @@ -4349,7 +4349,8 @@ _ACEOF -for ac_header in arpa/inet.h fcntl.h inttypes.h limits.h mntent.h netdb.h stddef.h stdint.h stdlib.h string.h strings.h sys/mount.h sys/param.h sys/socket.h sys/time.h unistd.h + +for ac_header in arpa/inet.h fcntl.h inttypes.h limits.h mntent.h netdb.h stddef.h stdint.h stdlib.h string.h strings.h sys/mount.h sys/param.h sys/socket.h sys/time.h syslog.h unistd.h do as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then diff --git a/configure.ac b/configure.ac index 92c7a4e..1ceba2e 100644 --- a/configure.ac +++ b/configure.ac @@ -16,7 +16,7 @@ AC_PROG_CC # Checks for header files. AC_USE_SYSTEM_EXTENSIONS -AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h limits.h mntent.h netdb.h stddef.h stdint.h stdlib.h string.h strings.h sys/mount.h sys/param.h sys/socket.h sys/time.h unistd.h]) +AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h limits.h mntent.h netdb.h stddef.h stdint.h stdlib.h string.h strings.h sys/mount.h sys/param.h sys/socket.h sys/time.h syslog.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. AC_HEADER_STDBOOL |