]> diplodocus.org Git - nmh/blobdiff - sbr/ruserpass.c
Fix invalid pointer arithmetic.
[nmh] / sbr / ruserpass.c
index ab47f13a66d4ad2f81ef098716f7f3a325b7f608..5c47aa114a733872bf013af3b38d9b5087918db9 100644 (file)
@@ -1,4 +1,5 @@
-/*
+/* ruserpass.c -- parse .netrc-format file.
+ *
  * Portions of this code are
  * Copyright (c) 1985 Regents of the University of California.
  * All rights reserved.
@@ -217,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;
 }