Add timestamp offset for block header
[p2pool.git] / litecoin_scrypt / scryptmodule.c
index 6cde2c0..e150315 100644 (file)
@@ -1,14 +1,10 @@
-//#include "stdint.h"
-
-typedef char uint8_t;
-
 #include <Python.h>
 
 //#include "scrypt.h"
 
 static PyObject *scrypt_getpowhash(PyObject *self, PyObject *args)
 {
-    uint8_t *output;
+    char *output;
     PyObject *value;
     PyStringObject *input;
     if (!PyArg_ParseTuple(args, "S", &input))
@@ -16,7 +12,7 @@ static PyObject *scrypt_getpowhash(PyObject *self, PyObject *args)
     Py_INCREF(input);
     output = PyMem_Malloc(32);
 
-    scrypt_1024_1_1_256((uint8_t *)PyString_AsString((PyObject*) input), output);
+    scrypt_1024_1_1_256((char *)PyString_AsString((PyObject*) input), output);
     Py_DECREF(input);
     value = Py_BuildValue("s#", output, 32);
     PyMem_Free(output);
@@ -30,4 +26,4 @@ static PyMethodDef ScryptMethods[] = {
 
 PyMODINIT_FUNC initltc_scrypt(void) {
     (void) Py_InitModule("ltc_scrypt", ScryptMethods);
-}
\ No newline at end of file
+}