patch-rocdigs_impl_nmra_nmra_c 490 B

123456789101112131415
  1. $OpenBSD: patch-rocdigs_impl_nmra_nmra_c,v 1.1 2017/05/07 23:57:16 espie Exp $
  2. Index: rocdigs/impl/nmra/nmra.c
  3. --- rocdigs/impl/nmra/nmra.c.orig
  4. +++ rocdigs/impl/nmra/nmra.c
  5. @@ -1390,7 +1390,7 @@ int createCVsetpacket(int cv, int value, char* SendStr
  6. int ack = 0;
  7. /* no special error handling, it's job of the clients */
  8. - if (cv<0 || cv>1024 || value<0 || value>255) return;
  9. + if (cv<0 || cv>1024 || value<0 || value>255) return 0;
  10. if (!smInitialized)
  11. smInit();