cvs: php-src /ext/standard uniqid.c
| From: | Ilia Alshanetsky | Date: | Thu, 28 Oct 2004 22:22:22 +0000 |
| Subject: | cvs: php-src /ext/standard uniqid.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-29047@lists.php.net to get a copy of this message | ||
iliaa Thu Oct 28 18:22:22 2004 EDT
Modified files:
/php-src/ext/standard uniqid.c
Log:
Simplify code.
http://cvs.php.net/diff.php/php-src/ext/standard/uniqid.c?r1=1.39&r2=1.40&ty=u
Index: php-src/ext/standard/uniqid.c
diff -u php-src/ext/standard/uniqid.c:1.39 php-src/ext/standard/uniqid.c:1.40
--- php-src/ext/standard/uniqid.c:1.39 Thu Jan 8 03:17:34 2004
+++ php-src/ext/standard/uniqid.c Thu Oct 28 18:22:22 2004
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: uniqid.c,v 1.39 2004/01/08 08:17:34 andi Exp $ */
+/* $Id: uniqid.c,v 1.40 2004/10/28 22:22:22 iliaa Exp $ */
#include "php.h"
@@ -50,11 +50,10 @@
zend_bool more_entropy = 0;
#endif
char *uniqid;
- int sec, usec, argc, prefix_len = 0;
+ int sec, usec, prefix_len = 0;
struct timeval tv;
- argc = ZEND_NUM_ARGS();
- if (zend_parse_parameters(argc TSRMLS_CC, "|sb", &prefix, &prefix_len,
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sb", &prefix,
&prefix_len,
&more_entropy)) {
return;
}