pennsnoplus / penn_daq_old

Simple DAQ for SNO+
2 stars 3 forks source link

scary gcc warning in tut.c #22

Closed mastbaum closed 13 years ago

mastbaum commented 13 years ago

tut.c: In function ‘fileman_completion’: tut.c:233: warning: assignment makes pointer from integer without a cast

peterldowns commented 13 years ago

I'm at home right now (can't compile anything) but after taking a look try changing:

Line 233: matches = completion_matches(text, command_generator);

to

Line 233: matches = rl_completion_matches(text, command_generator);

I think I changed rl_completion_matches to completion_matches last summer when i was trying to compile on that crappy mac g4, and knew very little about the readline library.

I don't know if you'll see this before tomorrow, when I can try this on my own.

peterldowns commented 13 years ago

That was the problem. Fixed.