[Groonga-commit] groonga/groonga [master] Remove needless va_copy()

Back to archive index

null+****@clear***** null+****@clear*****
2012年 5月 17日 (木) 22:34:27 JST


Kouhei Sutou	2012-05-17 22:34:27 +0900 (Thu, 17 May 2012)

  New Revision: 3fc4dd595c79214a08572c66c598ed2c0d8d30b7

  Log:
    Remove needless va_copy()

  Modified files:
    lib/plugin.c

  Modified: lib/plugin.c (+1 -4)
===================================================================
--- lib/plugin.c    2012-05-17 22:24:16 +0900 (98973fe)
+++ lib/plugin.c    2012-05-17 22:34:27 +0900 (a91a709)
@@ -447,10 +447,7 @@ grn_plugin_free(grn_ctx *ctx, void *ptr, const char *file, int line,
 static void
 grn_plugin_ctx_log(grn_ctx *ctx, const char *format, va_list ap)
 {
-  va_list aq;
-  va_copy(aq, ap);
-  vsnprintf(ctx->errbuf, GRN_CTX_MSGSIZE, format, aq);
-  va_end(aq);
+  vsnprintf(ctx->errbuf, GRN_CTX_MSGSIZE, format, ap);
 }
 
 void




Groonga-commit メーリングリストの案内
Back to archive index