passdb/secrets.c: Atomicly storing pid_t values?

Andrew Bartlett abartlet at
Sun Jun 24 02:38:31 GMT 2001

This got picked up by the IRIX complier:

"passdb/secrets.c", line 197: warning(1164): argument of type "unsigned
int *"
          is incompatible with parameter of type "int *"
  		tdb_change_int_atomic(tdb, "INFO/random_seed", &initial_val, 1);
In this case, we need a way to store the value (the pid) atomicly, as
pid_t not int.  Unfortunetly its not possible to do a simple copy/paste
as the current code returns -1 for failure and pid_t is unsigned...

Could somebody take a look at this?

Andrew Bartlett	                                               

Andrew Bartlett
abartlet at
abartlet at

More information about the samba-technical mailing list