Permalink
Browse files

Use SRS_SUCCESS

  • Loading branch information...
1 parent 2f0595a commit 419af1e2eeccf8f64a2007750b4ec25b4495ea07 @andrenth committed Jul 11, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/srs_stubs.c
View
@@ -78,7 +78,7 @@ caml_srs_forward(value srs_val, value sender_val, value alias_val)
char *rewritten;
ret = srs_forward_alloc(srs, &rewritten, sender, alias);
- if (ret != 0)
+ if (ret != SRS_SUCCESS)
srs_error(srs_strerror(ret));
res = caml_copy_string(rewritten);
@@ -98,7 +98,7 @@ caml_srs_reverse(value srs_val, value sender_val)
char *original;
ret = srs_reverse_alloc(srs, &original, sender);
- if (ret != 0)
+ if (ret != SRS_SUCCESS)
srs_error(srs_strerror(ret));
res = caml_copy_string(original);
@@ -122,7 +122,7 @@ caml_srs_set_separator(value srs_val, value sep_val)
char sep = srs_sep_table[Int_val(sep_val)];
ret = srs_set_separator(srs, sep);
- if (ret == -1)
+ if (ret != SRS_SUCCESS)
srs_error(srs_strerror(ret));
CAMLreturn(Val_unit);

0 comments on commit 419af1e

Please sign in to comment.