~registry/kmod/master

« back to all changes in this revision

Viewing changes to test/test-insmod.c

  • Committer: Lucas De Marchi
  • Date: 2011-12-12 12:30:01 UTC
  • mfrom: (161.1.30)
  • Revision ID: git-v1:2fee2f13ce5f6b17dd672389de422217c56105e2
Merge branch 'use-mmap'

Conflicts:
        libkmod/libkmod.c

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
        path = argv[1];
24
24
 
25
 
        ctx = kmod_new(NULL);
 
25
        ctx = kmod_new(NULL, NULL);
26
26
        if (ctx == NULL)
27
27
                exit(EXIT_FAILURE);
28
28
 
36
36
 
37
37
        printf("Trying insmod '%s' (%s)\n", kmod_module_get_name(mod),
38
38
                                                kmod_module_get_path(mod));
39
 
        err = kmod_module_insert_module(mod, 0);
 
39
        err = kmod_module_insert_module(mod, 0, NULL);
40
40
        if (err < 0) {
41
41
                fprintf(stderr, "%s\n", strerror(-err));
42
42