Skip to content

Commit

Permalink
update yar_response_set_error in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ixqbar committed May 14, 2015
1 parent 7f3bb6b commit 14235fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ map {'k' => 'v'},
uint size = 0;
if (yar_unpack_data_type(request->in, &size) != YAR_DATA_ARRAY || size != 3) {
yar_response_set_error(response, "参数检查失败, 只接受3个参数");
yar_response_set_error(response, YAR_ERROR, "参数检查失败, 只接受3个参数");
return ;
}
````
Expand All @@ -366,9 +366,9 @@ do {
tmp = yar_unpack_iterator_current(it);
if (yar_unpack_data_type(tmp, &dummy) != YAR_DATA_LOG) {
if (yar_unpack_data_type(tmp, &dummy) != YAR_DATA_LONG) {
yar_response_set_error(response, "参数检查失败, 只接受整数");
yar_response_set_error(response, YAR_ERROR, "参数检查失败, 只接受整数");
return ;
Expand Down
8 changes: 1 addition & 7 deletions yar.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,7 @@
#ifndef YAR_H
#define YAR_H

#define YAR_VERSION "1.0.2-dev"

typedef struct _yar_payload {
char *data;
uint size;
} yar_payload;

#include "yar_common.h"
#include "yar_log.h"
#include "yar_pack.h"
#include "yar_response.h"
Expand Down

0 comments on commit 14235fd

Please sign in to comment.