]> diplodocus.org Git - nmh/blobdiff - sbr/ruserpass.c
Fix invalid pointer arithmetic.
[nmh] / sbr / ruserpass.c
index 6b1d1a137a24ff35c8d9c3902b2ba2bf2f416c85..5c47aa114a733872bf013af3b38d9b5087918db9 100644 (file)
@@ -1,4 +1,6 @@
-/* Portions of this code are
+/* ruserpass.c -- parse .netrc-format file.
+ *
+ * Portions of this code are
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.
  *
@@ -216,7 +218,7 @@ token(char *tokval)
 
     for (t = toktabs; t->tokstr; t++)
        if (!strcmp(t->tokstr, tokval))
-           return (t->tval);
+           return t->tval;
 
-    return (ID);
+    return ID;
 }