~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/errmsg.cc

  • Committer: Brian Aker
  • Date: 2008-12-05 19:17:37 UTC
  • Revision ID: brian@tangent.org-20081205191737-pp8u84pdz6dcp182
Part removal of my_pthread.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
    if (plugin->plugin->init((void *)p))
39
39
    {
40
40
      /* we're doing the errmsg plugin api,
41
 
         so we can't trust the errmsg api to emit our error messages
42
 
         so we will emit error messages to stderr */
 
41
        so we can't trust the errmsg api to emit our error messages
 
42
        so we will emit error messages to stderr */
43
43
      /* TRANSLATORS: The leading word "errmsg" is the name
44
 
         of the plugin api, and so should not be translated. */
 
44
        of the plugin api, and so should not be translated. */
45
45
      fprintf(stderr,
46
 
              _("errmsg plugin '%s' init() failed."),
47
 
              plugin->name.str);
 
46
              _("errmsg plugin '%s' init() failed."),
 
47
              plugin->name.str);
48
48
      goto err;
49
49
    }
50
50
  }
145
145
 
146
146
  /* call errmsg_iterate
147
147
     once for each loaded errmsg plugin */
148
 
  foreach_rv= plugin_foreach(session,
149
 
                             errmsg_iterate,
150
 
                             DRIZZLE_ERRMSG_PLUGIN,
151
 
                             (void *) &parms);
 
148
  foreach_rv= plugin_foreach(session, errmsg_iterate,
 
149
                             DRIZZLE_ERRMSG_PLUGIN, (void *) &parms);
152
150
  return foreach_rv;
153
151
}
154
152