Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use SRS_SUCCESS

  • Loading branch information...
commit 419af1e2eeccf8f64a2007750b4ec25b4495ea07 1 parent 2f0595a
@andrenth authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/srs_stubs.c
View
6 lib/srs_stubs.c
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.