Browse Source

- char* -> const char*

Jan Janak 20 năm trước cách đây
mục cha
commit
f7760ec97b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      ut.h

+ 1 - 1
ut.h

@@ -100,7 +100,7 @@ static char fourbits2char[16] = { '0', '1', '2', '3', '4', '5',
 /* converts a str to an u. short, returns the u. short and sets *err on
  * error and if err!=null
   */
-static inline unsigned short str2s(char* s, unsigned int len,
+static inline unsigned short str2s(const char* s, unsigned int len,
 									int *err)
 {
 	unsigned short ret;