~ubuntu-branches/debian/sid/ldm/sid

« back to all changes in this revision

Viewing changes to src/ldmplugin.c

  • Committer: Package Import Robot
  • Author(s): Vagrant Cascadian
  • Date: 2013-11-24 18:15:02 UTC
  • mfrom: (3.4.12)
  • Revision ID: package-import@ubuntu.com-20131124181502-nz41rjauevwfocm1
Tags: 2:2.2.12-1
* New upstream version (Closes: #725927):
  - Updated translations.
  - Look for distinct server ip (LP: #1098349).
    Thanks to Phil Sharfstein.
  - Avoid Xorg crashes caused by nouveau dri (LP: #1072711).

* Remove patches/automake-force-update.patch, applied upstream.
* Fix spelling of "relevant" in ldm-server package description.
  Thanks to Pascal De Vuyst. (Closes: #700456).
* Recommend ldm-themes only when building on Debian.
* update Standards-version to 3.9.5:
    - Dropped DM-Upload-Alowed field from debian/control.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
#include <string.h>
10
10
 
11
11
#include "ldmplugin.h"
 
12
#include "ldmgreetercomm.h"
 
13
#include "logging.h"
12
14
 
13
15
GTree* plugin_list = NULL;
14
16
gchar** plugin_names = NULL;
15
17
static jmp_buf auth_jmp_buf;
16
18
static gchar* current_plugin = NULL;
17
19
 
 
20
static int g_strcmp(gconstpointer a, gconstpointer b) {
 
21
    return strcmp((char*)a, (char*)b);
 
22
}
 
23
 
18
24
/*
19
25
 * set_current_plugin
20
26
 *  Set current plugin name
150
156
        return 1;
151
157
    }
152
158
    struct dirent* entry;
153
 
    while (entry = readdir(plugin_dir)) {
 
159
    while ( (entry = readdir(plugin_dir)) ) {
154
160
        if ((entry->d_type == DT_REG || entry->d_type == DT_UNKNOWN) && (strstr(entry->d_name, ".so") != NULL)) {
155
161
            int name_len = strlen(entry->d_name)+strlen(LDM_PLUG_DIR)+2;
156
162
            char* plug_name = (char *) malloc(name_len);