Skip to content

Commit ddbb201

Browse files
author
Elias Van Ootegem
committed
Fix typo + remove const storage class
1 parent de453f2 commit ddbb201

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php_kafka.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ zend_object_value create_kafka_connection(zend_class_entry *class_type TSRMLS_DC
233233
//add properties table
234234
#if PHP_VERSION_ID < 50399
235235
zend_hash_copy(
236-
interns->std.properties, &class_type->default_properties,
236+
intern->std.properties, &class_type->default_properties,
237237
(copy_ctor_func_t)zval_add_ref,
238238
(void *)&tmp,
239239
sizeof tmp
@@ -942,7 +942,7 @@ PHP_METHOD(Kafka, getPartitionOffsets)
942942
topic
943943
);
944944
if (kafka_r < 1) {
945-
const char *msg = NULL;
945+
char *msg = NULL;
946946
if (kafka_r)
947947
msg = kafka_r == -2 ? "No kafka connection" : "Allocation error";
948948
else

0 commit comments

Comments
 (0)