From 8ff7624653f0e119865cc6c283775832f1bc2903 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 18 Feb 2010 23:50:52 -0800 Subject: Remove _mesa_strncat in favor of plain strncat. --- src/mesa/main/imports.c | 7 ------- src/mesa/main/imports.h | 3 --- src/mesa/shader/atifragshader.c | 16 ++++++++-------- 3 files changed, 8 insertions(+), 18 deletions(-) (limited to 'src/mesa') diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c index cd19373fc5..1a7535d89e 100644 --- a/src/mesa/main/imports.c +++ b/src/mesa/main/imports.c @@ -841,13 +841,6 @@ _mesa_getenv( const char *var ) /** \name String */ /*@{*/ -/** Wrapper around strncat() */ -char * -_mesa_strncat( char *dest, const char *src, size_t n ) -{ - return strncat(dest, src, n); -} - /** Wrapper around strcpy() */ char * _mesa_strcpy( char *dest, const char *src ) diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index c487f1dab6..a3ec0c2ed9 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -611,9 +611,6 @@ _mesa_bsearch( const void *key, const void *base, size_t nmemb, size_t size, extern char * _mesa_getenv( const char *var ); -extern char * -_mesa_strncat( char *dest, const char *src, size_t n ); - extern char * _mesa_strcpy( char *dest, const char *src ); diff --git a/src/mesa/shader/atifragshader.c b/src/mesa/shader/atifragshader.c index ab7b2030d1..28dbf77b66 100644 --- a/src/mesa/shader/atifragshader.c +++ b/src/mesa/shader/atifragshader.c @@ -98,25 +98,25 @@ create_dst_mod_str(GLuint mod) _mesa_memset(ret_str, 0, 1024); if (mod & GL_2X_BIT_ATI) - _mesa_strncat(ret_str, "|2X", 1024); + strncat(ret_str, "|2X", 1024); if (mod & GL_4X_BIT_ATI) - _mesa_strncat(ret_str, "|4X", 1024); + strncat(ret_str, "|4X", 1024); if (mod & GL_8X_BIT_ATI) - _mesa_strncat(ret_str, "|8X", 1024); + strncat(ret_str, "|8X", 1024); if (mod & GL_HALF_BIT_ATI) - _mesa_strncat(ret_str, "|HA", 1024); + strncat(ret_str, "|HA", 1024); if (mod & GL_QUARTER_BIT_ATI) - _mesa_strncat(ret_str, "|QU", 1024); + strncat(ret_str, "|QU", 1024); if (mod & GL_EIGHTH_BIT_ATI) - _mesa_strncat(ret_str, "|EI", 1024); + strncat(ret_str, "|EI", 1024); if (mod & GL_SATURATE_BIT_ATI) - _mesa_strncat(ret_str, "|SAT", 1024); + strncat(ret_str, "|SAT", 1024); if (_mesa_strlen(ret_str) == 0) - _mesa_strncat(ret_str, "NONE", 1024); + strncat(ret_str, "NONE", 1024); return ret_str; } -- cgit v1.2.3