diff options
author | Luis Lozano <llozano@google.com> | 2012-08-21 19:35:33 +0000 |
---|---|---|
committer | Luis Lozano <llozano@google.com> | 2012-08-21 19:35:33 +0000 |
commit | e2c9ff8c2268582c06bd31956db91c610daabc25 (patch) | |
tree | 5d5a0c558b9742126cef9c7eecfbe34501e51ec5 | |
parent | a6f69316c02a19b3ba92ae31db2b85588d72d96d (diff) |
replaced deprecated sys_errlist usage
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/google/gcc-4_6-mobile@190572 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | vtable-security/ChangeLog.vtable-security | 5 | ||||
-rw-r--r-- | vtable-security/libstdc++-v3/libsupc++/vtv_utils.cc | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/vtable-security/ChangeLog.vtable-security b/vtable-security/ChangeLog.vtable-security index 00287cacc90..2ac0613d861 100644 --- a/vtable-security/ChangeLog.vtable-security +++ b/vtable-security/ChangeLog.vtable-security @@ -1,3 +1,8 @@ +2012-08-21 Luis Lozano <llozano@google.com> + + * libstdc++-v3/libsupc++/vtv_utils.CC: stop using deprecated + sys_errlist. Replaced it with strerror. + 2012-08-21 Caroline Tice <cmtice@google.com> * libstdc++-v3/libsupc++/vtv_rts.cc: (fcntl.h, vtv_fail.h): Two diff --git a/vtable-security/libstdc++-v3/libsupc++/vtv_utils.cc b/vtable-security/libstdc++-v3/libsupc++/vtv_utils.cc index 14fe2f75b92..c6e9cd21d75 100644 --- a/vtable-security/libstdc++-v3/libsupc++/vtv_utils.cc +++ b/vtable-security/libstdc++-v3/libsupc++/vtv_utils.cc @@ -38,7 +38,7 @@ vtv_open_log(const char * name) { int fd = open(name, O_WRONLY | O_APPEND | O_CREAT, S_IRWXU); if (fd == -1) - vtv_add_to_log(2, "Cannot open log file %s %s\n", name, sys_errlist[errno]); + vtv_add_to_log(2, "Cannot open log file %s %s\n", name, strerror(errno)); return fd; } @@ -49,7 +49,7 @@ vtv_log_write(int fd, const char * str) return 0; if (fd != 2) // make sure we dont get in a loop - vtv_add_to_log(2, "Error writing to log: %s\n", sys_errlist[errno]); + vtv_add_to_log(2, "Error writing to log: %s\n", strerror(errno)); return -1; } |