projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Port: Remove _GNU_SOURCE, defined in config.h
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
modprobe.c
diff --git
a/src/bin/lttng-sessiond/modprobe.c
b/src/bin/lttng-sessiond/modprobe.c
index 32c4210130d9227b1d4cb320cb66f80ccb6b28d5..4c1ea67be18c50c4800c5ccf76374ee27e98f6b1 100644
(file)
--- a/
src/bin/lttng-sessiond/modprobe.c
+++ b/
src/bin/lttng-sessiond/modprobe.c
@@
-16,7
+16,6
@@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#define _GNU_SOURCE
#define _LGPL_SOURCE
#include <assert.h>
#include <stdio.h>
#define _LGPL_SOURCE
#include <assert.h>
#include <stdio.h>
@@
-359,7
+358,7
@@
static int grow_probes(void)
static int append_list_to_probes(const char *list)
{
char *next;
static int append_list_to_probes(const char *list)
{
char *next;
- int
index = nr_probes,
ret;
+ int ret;
char *tmp_list, *cur_list;
assert(list);
char *tmp_list, *cur_list;
assert(list);
@@
-395,7
+394,7
@@
static int append_list_to_probes(const char *list)
/* Length 13 is "lttng-probe-" + \0 */
name_len = strlen(next) + 13;
/* Length 13 is "lttng-probe-" + \0 */
name_len = strlen(next) + 13;
- cur_mod = &probes[
index++
];
+ cur_mod = &probes[
nr_probes
];
cur_mod->name = zmalloc(name_len);
if (!cur_mod->name) {
PERROR("malloc probe list");
cur_mod->name = zmalloc(name_len);
if (!cur_mod->name) {
PERROR("malloc probe list");
@@
-410,7
+409,6
@@
static int append_list_to_probes(const char *list)
goto error;
}
goto error;
}
- cur_mod++;
nr_probes++;
}
nr_probes++;
}
This page took
0.025528 seconds
and
4
git commands to generate.