Hi

Is there a valid reason for why dtrace -h removes the const qualifier?

provider foo {
    probe bar(const void*);
};

The signature in the generated header-file generated by dtrace -hs  
foo.d looks like:

extern void __dtrace_foo___bar(void *);

Why is the const qualifier removed? Is this a bug or a "feature"?

I am getting compiler warnings since I am passing const-variables to  
my probes, and I don't want to add a cast just to get rid of the  
warning...

Trond

_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to